From a927b4927a4e1b69677d7300d196493aee113f3c Mon Sep 17 00:00:00 2001 From: Gabriel Davini <gabrielfranciscodavini@gmail.com> Date: Tue, 30 Oct 2018 10:52:16 -0300 Subject: [PATCH 1/2] [ADD] Added ACL for ranch.payment.system.term object --- __openerp__.py | 1 + security/ir.model.access.csv | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 security/ir.model.access.csv diff --git a/__openerp__.py b/__openerp__.py index e1662b7..a764dfe 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -33,6 +33,7 @@ ], "data": [ "views/ranch_purchase_data_view.xml", + "security/ir.model.access.csv", ], "installable": True, "application": True, diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv new file mode 100644 index 0000000..3945fc0 --- /dev/null +++ b/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_ranch_payment_system_term_base,access_ranch_payment_system_term_base,model_ranch_payment_system_term,base.group_user,1,0,0,0 +access_ranch_payment_system_term_cattle,access_ranch_payment_system_term_cattle,model_ranch_payment_system_term,rafalim_cattle_ranch.group_cattle_ranch_user,1,1,1,0 +access_ranch_payment_system_term_pork,access_ranch_payment_system_term_pork,model_ranch_payment_system_term,rafalim_cattle_ranch.group_pork_ranch_user,1,1,1,0 +access_ranch_payment_system_term_responsible,access_ranch_payment_system_term_responsible,model_ranch_payment_system_term,rafalim_cattle_ranch.group_ranch_responsible,1,1,1,1 -- GitLab From 91ce2bd313a943c07e23b58307bffea3b15eb931 Mon Sep 17 00:00:00 2001 From: Gabriel Davini <gabrielfranciscodavini@gmail.com> Date: Tue, 30 Oct 2018 11:03:02 -0300 Subject: [PATCH 2/2] Update ir.model.access.csv --- security/ir.model.access.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv index 3945fc0..bc3a143 100644 --- a/security/ir.model.access.csv +++ b/security/ir.model.access.csv @@ -1,5 +1,5 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_ranch_payment_system_term_base,access_ranch_payment_system_term_base,model_ranch_payment_system_term,base.group_user,1,0,0,0 -access_ranch_payment_system_term_cattle,access_ranch_payment_system_term_cattle,model_ranch_payment_system_term,rafalim_cattle_ranch.group_cattle_ranch_user,1,1,1,0 -access_ranch_payment_system_term_pork,access_ranch_payment_system_term_pork,model_ranch_payment_system_term,rafalim_cattle_ranch.group_pork_ranch_user,1,1,1,0 +access_ranch_payment_system_term_cattle,access_ranch_payment_system_term_cattle,model_ranch_payment_system_term,rafalim_cattle_ranch.group_cattle_ranch_user,1,1,1,1 +access_ranch_payment_system_term_pork,access_ranch_payment_system_term_pork,model_ranch_payment_system_term,rafalim_cattle_ranch.group_pork_ranch_user,1,1,1,1 access_ranch_payment_system_term_responsible,access_ranch_payment_system_term_responsible,model_ranch_payment_system_term,rafalim_cattle_ranch.group_ranch_responsible,1,1,1,1 -- GitLab