summaryrefslogtreecommitdiff
path: root/addons/hr/security
diff options
context:
space:
mode:
authorjbm-odoo <jbm@odoo.com>2018-12-07 12:50:03 +0000
committerYannick Tivisse <yti@odoo.com>2019-03-05 09:08:12 +0000
commitec07e72845a390cdf9cf72ebbbf4369ea92ecfbe (patch)
treecde381bde3d9fa626ec4c3d466d2c883e92f0b9c /addons/hr/security
parentc0222efd1393bf88720c56799ad8e63ae8cc89bc (diff)
[IMP] base,*: Reorganize access rights groups
Purpose ======= Access group terminology is missleading. Yous have to be manager to administrate an application. This task consists to rename groups to be understandable for everyone. Groups should be reorganised on the users form to be more explicit. Specification ============= 1/ Rename 'Manager' to 'Administrator' in users groups. 2/ Define a hierarchy on access groups by using the category_id in the manifests A category 'Operations/Project' will create a category Project with a parent category 'Operations', and something smart is already developed (in modules/db.py) to avoid duplicating categories. 3/ Add a group in expenses to be able to approve expenses reports for my team. 4/ Add a group in timesheets to be able to approve timesheets for my team. 5/ Remove partially the useless crap in ir_module_category_data.xml 6/ Sort access rights groups on users form according to its parent category closes odoo/odoo#29362 Signed-off-by: "Yannick Tivisse (yti)" <yti@odoo.com>
Diffstat (limited to 'addons/hr/security')
-rw-r--r--addons/hr/security/hr_security.xml11
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml
index aa08e5f0762..8d435e67463 100644
--- a/addons/hr/security/hr_security.xml
+++ b/addons/hr/security/hr_security.xml
@@ -1,17 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
+ <record id="base.module_category_human_resources_employees" model="ir.module.category">
+ <field name="description">Helps you manage your employees.</field>
+ <field name="sequence">9</field>
+ </record>
+
<record id="group_hr_user" model="res.groups">
<field name="name">Officer</field>
- <field name="category_id" ref="base.module_category_human_resources"/>
+ <field name="category_id" ref="base.module_category_human_resources_employees"/>
<field name="implied_ids" eval="[(6, 0, [ref('base.group_private_addresses'), ref('base.group_user')])]"/>
<field name="comment">The user will be able to approve document created by employees.</field>
</record>
<record id="group_hr_manager" model="res.groups">
- <field name="name">Manager</field>
+ <field name="name">Administrator</field>
<field name="comment">The user will have access to the human resources configuration as well as statistic reports.</field>
- <field name="category_id" ref="base.module_category_human_resources"/>
+ <field name="category_id" ref="base.module_category_human_resources_employees"/>
<field name="implied_ids" eval="[(4, ref('group_hr_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>