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
43 lines
2.1 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Xpath expression specified to add new fields in pos_config model-->
|
|
<record id="pos_config_view_form" model="ir.ui.view">
|
|
<field name="name">pos.config.view.form.inherit.pos.customer.birthday.discount</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="//div[@id='pricing']" position="inside">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="birthday_discount"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="birthday_discount"/>
|
|
<div class="text-muted">
|
|
Provides extra discount for customers on their Birthday
|
|
</div>
|
|
<div attrs="{'invisible': [('birthday_discount', '=', False)]}">
|
|
<div>
|
|
<label for="discount"/>
|
|
<div>
|
|
<field name="discount" widget="percentage" style="width:80px;"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div attrs="{'invisible': [('birthday_discount', '=', False)]}">
|
|
<div class="o_setting_left_pane">
|
|
<field name="first_order"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="first_order"/>
|
|
<div class="text-muted">
|
|
Apply the discount only for the first order of the customer on Birthday
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|