summaryrefslogtreecommitdiff
path: root/addons/pos_hr/views/pos_config.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_hr/views/pos_config.xml')
-rw-r--r--addons/pos_hr/views/pos_config.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/addons/pos_hr/views/pos_config.xml b/addons/pos_hr/views/pos_config.xml
new file mode 100644
index 00000000..668837c4
--- /dev/null
+++ b/addons/pos_hr/views/pos_config.xml
@@ -0,0 +1,31 @@
+<?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="//button[@id='btn_use_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>