From 9f94dbdba3d093e5fdb1709f9c22f1c37fee250d Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 9 Jan 2017 14:32:51 +0100 Subject: [PATCH] [FIX] account: ir.mode.access on products When the 'Invoicing' or 'Accounting' module is installed without the module 'Sales', only the admin user can create products in the database. The expected behavior is that any 'Accounting Adviser' should be able to manage some products in Odoo. To allow 'Accounting Advisers' to manage products, we add them the CRUD rights on 'product.product', 'product.template' and 'product.price.history' opw-703610 --- addons/account/security/ir.model.access.csv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/account/security/ir.model.access.csv b/addons/account/security/ir.model.access.csv index 7a1e54c6170..f9d21696d8f 100644 --- a/addons/account/security/ir.model.access.csv +++ b/addons/account/security/ir.model.access.csv @@ -1,5 +1,8 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_product_product_account_user,product.product.account.user,product.model_product_product,group_account_user,1,0,0,0 +access_product_product_account_manager,product.product.account.manager,product.model_product_product,group_account_manager,1,1,1,1 +access_product_template_account_manager,product.template.account.manager,product.model_product_template,group_account_manager,1,1,1,1 +access_product_price_history_account_manager,prices.history.account.manager,product.model_product_price_history,group_account_manager,1,1,1,1 access_account_payment_term,account.payment.term,model_account_payment_term,account.group_account_user,1,0,0,0 access_account_payment_term_line,account.payment.term.line,model_account_payment_term_line,account.group_account_user,1,0,0,0 access_account_account_type_manager,account.account.type,model_account_account_type,account.group_account_manager,1,1,1,1