Skip to content
Permalink
Browse files

[IMP] point_of_sale: Small changes to the POS Config view

Add a class on the list of IoT Devices to override it easily in pos_iot
and increase the width of the labels.
  • Loading branch information...
aprieels committed Sep 6, 2019
1 parent b006e32 commit ab6c296cf31cd27271dfa75ff27c4ee5b2f826b7
Showing with 12 additions and 12 deletions.
  1. +10 −10 addons/point_of_sale/views/pos_config_view.xml
  2. +2 −2 addons/pos_mercury/views/pos_config_views.xml
@@ -152,32 +152,32 @@
</div>
<div class="o_setting_right_pane">
<label for="is_posbox" string="IoT Box Devices"/>
<div class="text-muted">
<div class="text-muted mb16">
Connect devices to your PoS through an IoT Box
</div>
<div class="content-group" attrs="{'invisible' : [('is_posbox', '=', False)]}">
<div class="row mt16">
<label string="IoT Box IP Address" for="proxy_ip" class="col-lg-3 o_light_label"/>
<div class="content-group pos_iot_config" attrs="{'invisible' : [('is_posbox', '=', False)]}">
<div class="row">
<label string="IoT Box IP Address" for="proxy_ip" class="col-lg-4 o_light_label"/>
<field name="proxy_ip"/>
</div>
<div class="row">
<label string="Barcode Scanner" for="iface_scan_via_proxy" class="col-lg-3 o_light_label"/>
<div class="row iot_barcode_scanner">
<label string="Barcode Scanner" for="iface_scan_via_proxy" class="col-lg-4 o_light_label"/>
<field name="iface_scan_via_proxy"/>
</div>
<div class="row">
<label string="Electronic Scale" for="iface_electronic_scale" class="col-lg-3 o_light_label"/>
<label string="Electronic Scale" for="iface_electronic_scale" class="col-lg-4 o_light_label"/>
<field name="iface_electronic_scale"/>
</div>
<div class="row">
<label string="Receipt Printer" for="iface_print_via_proxy" class="col-lg-3 o_light_label"/>
<label string="Receipt Printer" for="iface_print_via_proxy" class="col-lg-4 o_light_label"/>
<field name="iface_print_via_proxy"/>
</div>
<div class="row" attrs="{'invisible': [('iface_print_via_proxy', '=', False)]}">
<label string="Cashdrawer" for="iface_cashdrawer" class="col-lg-3 o_light_label"/>
<label string="Cashdrawer" for="iface_cashdrawer" class="col-lg-4 o_light_label"/>
<field name="iface_cashdrawer"/>
</div>
<div class="row">
<label string="Customer Display" for="iface_customer_facing_display" class="col-lg-3 o_light_label"/>
<label string="Customer Display" for="iface_customer_facing_display" class="col-lg-4 o_light_label"/>
<field name="iface_customer_facing_display"/>
</div>
<field name="customer_facing_display_html" invisible="1"/>
@@ -10,9 +10,9 @@
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
<label for="iface_scan_via_proxy" position="attributes">
<xpath expr="//div[hasclass('iot_barcode_scanner')]//label" position="attributes">
<attribute name="string">Barcode Scanner/Card Reader</attribute>
</label>
</xpath>
</field>
</record>
</odoo>

0 comments on commit ab6c296

Please sign in to comment.
You can’t perform that action at this time.