summaryrefslogtreecommitdiff
path: root/addons/hr/security/hr_security.xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-08-23 09:28:07 +0200
committerYannick Tivisse <yti@odoo.com>2016-08-23 11:14:37 +0200
commitff63f5d0a37a502df420b48656c8d0beb19cb00a (patch)
tree79fdbdce04ee921971ff0ec4ba70c9170ca72869 /addons/hr/security/hr_security.xml
parent92a60f1340f0122e31807fef1ca80ec196b9c7d5 (diff)
[IMP] base_setup: Allow the admin to modify the default user acess rights
Add a link in the general settings to access easily the default_user form view in order to modify the default access rights The default_user manager rights declarations in all the applications have been move in a noupdate="1" definition to avoid the manual configuration overwrittings
Diffstat (limited to 'addons/hr/security/hr_security.xml')
-rw-r--r--addons/hr/security/hr_security.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml
index 320ca081325..bf90d5031fc 100644
--- a/addons/hr/security/hr_security.xml
+++ b/addons/hr/security/hr_security.xml
@@ -20,9 +20,6 @@
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
- <record id="base.default_user" model="res.users">
- <field name="groups_id" eval="[(4,ref('base.group_hr_manager'))]"/>
- </record>
<record id="base.group_hr_attendance" model="res.groups">
<field name="name">Attendances</field>
@@ -30,6 +27,9 @@
</record>
<data noupdate="1">
+ <record id="base.default_user" model="res.users">
+ <field name="groups_id" eval="[(4,ref('base.group_hr_manager'))]"/>
+ </record>
<record id="hr_dept_comp_rule" model="ir.rule">
<field name="name">Department multi company rule</field>