I’m really tired of trying to edit the existing access rights for the model stock.landed.cost
All I want is to make it read-only for these 3 user groups:
- Accounting / Accountant
- Inventory / Administrator
- Accounting / Chief Accountant
What I tried:
I added the following lines in my security/ir.model.access.csv file:
"access_stock_landed_cost_account_manager","stock.landed.cost.account.manager","stock_landed_costs.model_stock_landed_cost","account.group_account_manager",1,0,0,0 "access_stock_landed_cost_account_accountant","stock.landed.cost.account.manager","stock_landed_costs.model_stock_landed_cost","base_accounting_kit.group_account_accountant",1,0,0,0 "access_stock_landed_cost","stock.landed.cost","stock_landed_costs.model_stock_landed_cost","stock.group_stock_manager",1,0,0,0
I tried using both the same names as the existing access rules and also different names, but it still didn’t work.
Users from these groups continue to have full access (create, write, unlink).
I know that access rights can be edited manually via the Odoo UI, but that is not my goal.
I want to:
- Keep the existing groups (Accounting / Accountant, Inventory / Administrator, Accounting / Chief Accountant) as read-only.
-
Create a new user group that has full access (read, write, create, delete) to this model only
What’s the correct way to make the existing groups read-only on this model?