diff --git a/partner_revision/__openerp__.py b/partner_revision/__openerp__.py index 94abbe57d..ceaefe310 100644 --- a/partner_revision/__openerp__.py +++ b/partner_revision/__openerp__.py @@ -27,7 +27,9 @@ 'depends': ['base', ], 'website': 'http://www.camptocamp.com', - 'data': ['views/menu.xml', + 'data': ['security/security.xml', + 'security/ir.model.access.csv', + 'views/menu.xml', 'views/res_partner_revision_views.xml', 'views/revision_field_rule_views.xml', ], diff --git a/partner_revision/security/ir.model.access.csv b/partner_revision/security/ir.model.access.csv new file mode 100644 index 000000000..5b2f6743f --- /dev/null +++ b/partner_revision/security/ir.model.access.csv @@ -0,0 +1,10 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_view_revision_field_rule_partner_manager,revision field rules for partner managers,model_revision_field_rule,base.group_partner_manager,1,0,0,0 +access_view_revision_field_rule_user,revision field rules for revision users,model_revision_field_rule,group_revision_user,1,0,0,0 +access_view_revision_field_rule_manager,revision field rules for revision managers,model_revision_field_rule,group_revision_user,1,1,1,1 +access_view_res_partner_revision_partner_manager,revision for partner managers,model_res_partner_revision,base.group_partner_manager,1,0,1,0 +access_view_res_partner_revision_change_partner_manager,revision change for partner managers,model_res_partner_revision_change,base.group_partner_manager,1,0,1,0 +access_view_res_partner_revision_user,revision for revision users,model_res_partner_revision,group_revision_user,1,1,1,0 +access_view_res_partner_revision_change_user,revision change for revision users,model_res_partner_revision_change,group_revision_user,1,1,1,0 +access_view_res_partner_revision_manager,revision for revision managers,model_res_partner_revision,group_revision_manager,1,1,1,1 +access_view_res_partner_revision_change_manager,revision change for revision managers,model_res_partner_revision_change,group_revision_manager,1,1,1,1 diff --git a/partner_revision/security/security.xml b/partner_revision/security/security.xml new file mode 100644 index 000000000..91f33fe1a --- /dev/null +++ b/partner_revision/security/security.xml @@ -0,0 +1,19 @@ + + + + + + Revision Configuration + The user will have an access to the configuration of the revision rules. + + + + + Revisions Validations + The user will be able to apply or reject revisions. + + + + + + diff --git a/partner_revision/views/menu.xml b/partner_revision/views/menu.xml index a0137e792..1dd90902f 100644 --- a/partner_revision/views/menu.xml +++ b/partner_revision/views/menu.xml @@ -3,6 +3,7 @@ diff --git a/partner_revision/views/revision_field_rule_views.xml b/partner_revision/views/revision_field_rule_views.xml index f1c2b9b22..5690fcb0e 100644 --- a/partner_revision/views/revision_field_rule_views.xml +++ b/partner_revision/views/revision_field_rule_views.xml @@ -55,6 +55,7 @@