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.
 
 
 
 
 

49 lines
2.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Inherits the res config settings form view to add the Takeaway settings -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.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[hasclass('settings')]//
div[@data-key='point_of_sale']"
position="inside">
<div id="other_features_takeaway" data-string="Point of sale"
string="Point of Sale"
data-key="point_of_sale">
<h2>Other Features</h2>
<div class="row mt16 o_settings_container">
<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>
</div>
</xpath>
</field>
</record>
</odoo>