summaryrefslogtreecommitdiff
path: root/addons/maintenance
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/maintenance
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/maintenance')
-rw-r--r--addons/maintenance/__manifest__.py2
-rw-r--r--addons/maintenance/security/maintenance.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/maintenance/__manifest__.py b/addons/maintenance/__manifest__.py
index 72f729da096..03e937f0885 100644
--- a/addons/maintenance/__manifest__.py
+++ b/addons/maintenance/__manifest__.py
@@ -4,7 +4,7 @@
'name': 'Maintenance',
'version': '1.0',
'sequence': 125,
- 'category': 'Human Resources',
+ 'category': 'Human Resources/Maintenance',
'description': """
Track equipments and maintenance requests""",
'depends': ['mail'],
diff --git a/addons/maintenance/security/maintenance.xml b/addons/maintenance/security/maintenance.xml
index 0fefbc07f78..75a53c685d3 100644
--- a/addons/maintenance/security/maintenance.xml
+++ b/addons/maintenance/security/maintenance.xml
@@ -3,7 +3,7 @@
<!-- This group is only allowed to deal with equipment registration and maintenance -->
<record id="group_equipment_manager" model="res.groups">
<field name="name">Equipment Manager</field>
- <field name="category_id" ref="base.module_category_human_resources"/>
+ <field name="category_id" ref="base.module_category_human_resources_maintenance"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="comment">The user will be able to manage equipments.</field>
</record>