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.
 
 
 
 
 

34 lines
2.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- To inherit settings page -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.service.charges.pos</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="point_of_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//block[@id='pos_pricing_section']" position="inside">
<setting help="Adds a button to set a service charge.">
<field name="pos_is_service_charges" readonly="pos_has_active_session"/>
<div class="content-group mt16" invisible="not pos_is_service_charges">
<div class="row">
<label string="Visibility" for="pos_visibility_type" class="col-lg-3 o_light_label"/>
<field name="pos_visibility_type" widget="radio" options="{'horizontal': true}"/>
</div>
<div class="row" invisible="pos_visibility_type == 'session'">
<label string="Service Product" for="pos_service_product_id" class="col-lg-3 o_light_label"/>
<field name="pos_service_product_id" required="pos_is_service_charges"/>
</div>
<div class="row" invisible="pos_visibility_type == 'session'">
<label string="Charge Type" for="pos_service_charge_type" class="col-lg-3 o_light_label"/>
<field name="pos_service_charge_type" widget="radio" options="{'horizontal': true}"/>
</div>
<div class="row" invisible="pos_visibility_type == 'session'">
<label string="Service Charge" for="pos_service_charge" class="col-lg-3 o_light_label"/>
<field name="pos_service_charge"/>
</div>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>