You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
2.0 KiB

5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_pos_config_view_form_jsprintmanager" model="ir.ui.view">
  4. <field name="name">pos.config.form.jsprintmanager</field>
  5. <field name="model">pos.config</field>
  6. <field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
  7. <field name="priority" eval="30"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@id='receipt']" position="inside">
  10. <div class="col-12 col-lg-6 o_setting_box" id="use_jsprintmanager">
  11. <div class="o_setting_left_pane">
  12. <field name="use_jsprintmanager"/>
  13. </div>
  14. <div class="o_setting_right_pane">
  15. <label for="use_jsprintmanager"/>
  16. <div class="text-muted">
  17. Use JS Print Manager to print receipts
  18. </div>
  19. </div>
  20. <div id='jsprintmanager_default_receipt_printer' class="o_setting_right_pane" attrs="{'invisible' : [('use_jsprintmanager', '=', False)]}">
  21. <span class="o_form_label">Default Printer for Receipts</span>
  22. <div class="content-group mt16">
  23. <field name="jsprintmanager_default_receipt_printer" colspan="4"
  24. nolabel="1"/>
  25. </div>
  26. </div>
  27. <div id='jsprintmanager_output_format' class="o_setting_right_pane" attrs="{'invisible' : [('use_jsprintmanager', '=', False)]}">
  28. <span class="o_form_label">Output format</span>
  29. <div class="content-group mt16">
  30. <field name="jsprintmanager_output_format" colspan="4"
  31. nolabel="1"/>
  32. </div>
  33. </div>
  34. </div>
  35. </xpath>
  36. </field>
  37. </record>
  38. </odoo>