From f18e606e14ecb2d9d88f6a5114291a60e8b2040c Mon Sep 17 00:00:00 2001 From: Romain Deheele Date: Wed, 15 Jan 2014 15:15:56 +0100 Subject: [PATCH] [UPD] add access rights --- base_continent/__openerp__.py | 3 ++- base_continent/security/ir.model.access.csv | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 base_continent/security/ir.model.access.csv diff --git a/base_continent/__openerp__.py b/base_continent/__openerp__.py index 851c0950c..5ee59048a 100644 --- a/base_continent/__openerp__.py +++ b/base_continent/__openerp__.py @@ -36,7 +36,8 @@ adds continent field on partner form 'demo_xml': [], 'update_xml': [ 'base_continent_view.xml', - 'base_continent_data.xml'], + 'base_continent_data.xml', + 'security/ir.model.access.csv'], 'active': False, 'installable': True, } diff --git a/base_continent/security/ir.model.access.csv b/base_continent/security/ir.model.access.csv new file mode 100644 index 000000000..69ee73366 --- /dev/null +++ b/base_continent/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_continent_group_all,res_continent group_user_all,model_res_continent,,1,0,0,0 +access_res_continent_group_user,res_continent group_user,model_res_continent,base.group_partner_manager,1,1,1,1