[FIX] product, sale: access rights for product.price.history
Granting read-only access to Sales/Accounting Users is useless as all employees already have it - removed. On the other hand Sales Managers need write access to it in order to create products, and they need it even when `sale` is not installed, e.g. with `account` only. Moved this access right to `product` module. The Sales Manager group is defined in `base`, so that works.
This commit is contained in:
parent
9a099ff017
commit
dcc74a00f8
|
@ -16,6 +16,7 @@ access_product_pricelist_type_partner_manager,product.pricelist.type partner man
|
|||
access_product_pricelist_partner_manager,product.pricelist partner manager,model_product_pricelist,base.group_partner_manager,1,0,0,0
|
||||
access_product_product_employee,product.product employee,model_product_product,base.group_user,1,0,0,0
|
||||
access_product_price_history_employee,prices.history employee,model_product_price_history,base.group_user,1,0,0,0
|
||||
access_product_price_history_salemanager,prices.history sale manager,product.model_product_price_history,base.group_sale_manager,1,1,1,1
|
||||
access_product_template_sale_manager,product.template salemanager,model_product_template,base.group_sale_manager,1,1,1,1
|
||||
access_product_product_sale_manager,product.product salemanager,model_product_product,base.group_sale_manager,1,1,1,1
|
||||
access_product_category_sale_manager,product.category salemanager,product.model_product_category,base.group_sale_manager,1,1,1,1
|
||||
|
|
|
|
@ -41,6 +41,3 @@ access_product_group_res_partner_sale_manager,res_partner group_sale_manager,bas
|
|||
access_product_pricelist_version_sale_manager,product.pricelist.version sale_manager,product.model_product_pricelist_version,base.group_sale_manager,1,1,1,1
|
||||
access_account_invoice_report_salesman,account.invoice.report salesman,account.model_account_invoice_report,base.group_sale_salesman,1,0,0,0
|
||||
access_account_move_line_salesman,account.move.line invoice,account.model_account_move_line,base.group_sale_salesman,1,0,0,0
|
||||
access_product_price_history_salemanager,prices.history sale manager,product.model_product_price_history,base.group_sale_manager,1,1,1,1
|
||||
access_product_price_history_account_user,prices.history account user,product.model_product_price_history,account.group_account_user,1,0,0,0
|
||||
access_product_price_history_sale_use,prices.history sale use,product.model_product_price_history,base.group_sale_salesman,1,0,0,0
|
||||
|
|
|
Loading…
Reference in New Issue