pos_config_views.xml 1.3 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="pos_iot_config_view_form" model="ir.ui.view">
  4. <field name="name">pos.iot.config.form.view</field>
  5. <field name="model">pos.config</field>
  6. <field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[@id='other_devices']//div[hasclass('o_setting_right_pane')]" position="inside">
  9. <div class="content-group" attrs="{'invisible' : [('other_devices', '=', False)]}">
  10. <field name="epson_printer_ip" placeholder="Epson Receipt Printer IP Address" />
  11. <div class="row" attrs="{'invisible': [('epson_printer_ip', 'in', [False, ''])]}">
  12. <label string="Cashdrawer" for="iface_cashdrawer" class="col-lg-3 o_light_label"/>
  13. <field name="iface_cashdrawer"/>
  14. </div>
  15. </div>
  16. <div role="alert" class="alert alert-warning" attrs="{'invisible': ['|', '|', ('iface_print_via_proxy', '!=', True), ('other_devices', '!=', True), ('epson_printer_ip', 'in', [False, ''])]}">
  17. The Epson receipt printer will be used instead of the receipt printer connected to the IoT Box.
  18. </div>
  19. </xpath>
  20. </field>
  21. </record>
  22. </odoo>