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.
 
 
 
 
 

43 lines
2.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- To inherit pos session -->
<record id="pos_config_view_form" model="ir.ui.view">
<field name="name">pos.config.view.form.inherit.service.charges.pos</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
<xpath expr="//setting[@id='other_devices']" position="after">
<field name="is_session" invisible="1"/>
<setting help="Allow service charges on orders" invisible="not is_session">
<field name="is_service_charges"/>
<div class="content-group mt16" invisible="not is_service_charges">
<div class="row">
<label for="charge_type"
class="col-lg-3 o_light_label"/>
<field name="charge_type" widget="radio"
options="{'horizontal': true}"
required="is_service_charges"
/>
</div>
</div>
<div class="content-group mt16" invisible="not is_service_charges">
<div class="row">
<label for="service_product_id"
class="col-lg-3 o_light_label"/>
<field name="service_product_id"
required="is_service_charges"
/>
</div>
</div>
<div class="content-group mt16" invisible="not is_service_charges">
<div class="row">
<label for="service_charge"
class="col-lg-3 o_light_label"/>
<field name="service_charge"/>
</div>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>