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.
 
 
 
 
 

44 lines
2.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inheriting the res config settings view to add the settings-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos.takeaway</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="//div[@id='pos_technical_section']" position="after">
<h2 groups="base.group_no_one">Other Features</h2>
<div class="row mt16 o_settings_container"
id="takeaway_section">
<div class="col-xs-12 col-md-6 o_setting_box"
id="takeaway">
<div class="o_setting_left_pane">
<field name="takeaway"/>
</div>
<div class="o_setting_right_pane">
<label for="takeaway"
string="POS Takeaways"/>
<div class="text-muted" id="takeaway">
Takeaway/Dine-in on restaurant.
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box"
attrs="{'invisible' : [('takeaway', '!=', True)]}"
id="generate_token">
<div class="o_setting_left_pane">
<field name="generate_token"/>
</div>
<div class="o_setting_right_pane">
<label for="generate_token"/>
<div class="text-muted">
The token number starts from 1.
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>