Replace save buttons in each module field in pos.config with a message. Saving the pos.config form when a module_ or group_ field is modified will reload the page. closes odoo/odoo#51535 Related: odoo/enterprise#10669 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
32 lines
1.5 KiB
XML
32 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="pos_config_form_view_inherit" model="ir.ui.view">
|
|
<field name="name">pos.config.form.view.inherit</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='warning_text_employees']" position='replace'>
|
|
<div attrs="{'invisible': [('module_pos_hr', '=', False)]}">
|
|
<span class="o_form_label oe_edit_only">Allowed Employees </span>
|
|
<field name="employee_ids" widget="many2many_tags"
|
|
domain="[('company_id', '=', company_id)]"
|
|
/>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[@id='pricing']" position='inside'>
|
|
<div class="col-12 col-lg-6 o_setting_box price_control" title="Only users with Manager access rights for PoS app can modify the product prices on orders.">
|
|
<div class="o_setting_left_pane">
|
|
<field name="restrict_price_control"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="restrict_price_control" string="Price Control"/>
|
|
<div class="text-muted">
|
|
Restrict price modification to managers
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|