summaryrefslogtreecommitdiff
path: root/openerp/addons/base/security/ir.model.access.csv
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-03-07 10:04:16 +0100
committerYannick Tivisse <yti@odoo.com>2016-03-07 15:53:30 +0100
commitabdca55ea2f5a4296ef46d3b9562a21eb955272f (patch)
tree917822c79b8ead8437d6c561e655ec9ce52f15fd /openerp/addons/base/security/ir.model.access.csv
parent29404e096b369228242f6fb3f02f8e6fe4b7b622 (diff)
[FIX] User with 'Access Rights' rights not able to access Users menu
The ERP managers (users with 'Access Rights' rights) cannot even click on the Settings app menuitem. Because of 2 things: - The Dashboard settings is accessing the model ir_module_module. So we set a groups 'group_settings' on it. - The Users view is accessing the model ir_module_category to groups the aggregate and display the settings. So we change the security rules by giving the access to the group_erp_manager instead of group_settings - The global rules opn companies was applied to the erp managers. We splitted this ir.rules into three new ones on portal,public and employee users to allow the erp managers to access the companies - Writing on the res_groups was calling the method _update_user_groups_view in all the cases. This method should be called only when the view was needed to be modified, i.e. when the category_id is modified for this group.
Diffstat (limited to 'openerp/addons/base/security/ir.model.access.csv')
-rw-r--r--openerp/addons/base/security/ir.model.access.csv2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/security/ir.model.access.csv b/openerp/addons/base/security/ir.model.access.csv
index 21a18587c18..1736580b147 100644
--- a/openerp/addons/base/security/ir.model.access.csv
+++ b/openerp/addons/base/security/ir.model.access.csv
@@ -17,7 +17,7 @@
"access_ir_model_data_all","ir_model_data all","model_ir_model_data",,1,0,0,0
"access_ir_model_data_user","ir_model_data user","model_ir_model_data",base.group_user,1,0,1,0
"access_ir_model_fields_all","ir_model_fields all","model_ir_model_fields",,1,0,0,0
-"access_ir_module_category_group_user","ir_module_category group_user","model_ir_module_category","group_system",1,0,0,0
+"access_ir_module_category_group_user","ir_module_category group_user","model_ir_module_category","group_erp_manager",1,0,0,0
"access_ir_module_module_group_user","ir_module_module group_user","model_ir_module_module","group_system",1,1,1,1
"access_ir_module_module_dependency_group_system","ir_module_module_dependency group_system","model_ir_module_module_dependency","group_system",1,1,1,1
"access_ir_property_group_user","ir_property group_user","model_ir_property",,1,0,0,0