diff options
| author | jbm-odoo <jbm@odoo.com> | 2018-12-07 12:50:03 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-05 09:08:12 +0000 |
| commit | ec07e72845a390cdf9cf72ebbbf4369ea92ecfbe (patch) | |
| tree | cde381bde3d9fa626ec4c3d466d2c883e92f0b9c /addons/hr_contract | |
| parent | c0222efd1393bf88720c56799ad8e63ae8cc89bc (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_contract')
| -rw-r--r-- | addons/hr_contract/__manifest__.py | 2 | ||||
| -rw-r--r-- | addons/hr_contract/security/security.xml | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/addons/hr_contract/__manifest__.py b/addons/hr_contract/__manifest__.py index 1e29b42238a..1d51ac0b9ca 100644 --- a/addons/hr_contract/__manifest__.py +++ b/addons/hr_contract/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Employee Contracts', 'version': '1.0', - 'category': 'Human Resources', + 'category': 'Human Resources/Contracts', 'description': """ Add all information on the employee form to manage contracts. ============================================================= diff --git a/addons/hr_contract/security/security.xml b/addons/hr_contract/security/security.xml index 1e4cd3a829f..f189e67f0f3 100644 --- a/addons/hr_contract/security/security.xml +++ b/addons/hr_contract/security/security.xml @@ -1,9 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> <data noupdate="1"> + <record model="ir.module.category" id="base.module_category_human_resources_contracts"> + <field name="description">Helps you manage your contracts.</field> + <field name="sequence">10</field> + </record> + <record id="hr_contract.group_hr_contract_manager" model="res.groups"> - <field name="name">Manager</field> - <field name="category_id" ref="base.module_category_hr_contract"/> + <field name="name">Administrator</field> + <field name="category_id" ref="base.module_category_human_resources_contracts"/> <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> </record> |
