[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
This commit is contained in:
Pierre Masereel
2017-01-09 14:38:23 +01:00
parent 47e7f74022
commit 9f94dbdba3
@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_product_product_account_user product.product.account.user product.model_product_product group_account_user 1 0 0 0
3 access_product_product_account_manager product.product.account.manager product.model_product_product group_account_manager 1 1 1 1
4 access_product_template_account_manager product.template.account.manager product.model_product_template group_account_manager 1 1 1 1
5 access_product_price_history_account_manager prices.history.account.manager product.model_product_price_history group_account_manager 1 1 1 1
6 access_account_payment_term account.payment.term model_account_payment_term account.group_account_user 1 0 0 0
7 access_account_payment_term_line account.payment.term.line model_account_payment_term_line account.group_account_user 1 0 0 0
8 access_account_account_type_manager account.account.type model_account_account_type account.group_account_manager 1 1 1 1