I want to replace the existing access right of a model for a specific group with my own. I don't want to make changes in the base modules and want to achieve this by making changes in my own custom modules. Any good approach for this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3324
Views
Hi,
You can replace existing access right in your custom module as follows:
Suppose if you have access right in account module as this:
access_product_product_account_user,product.product.account.user,product.model_product_product,group_account_user,1,0,0,0
and if you need to change this in your module, you can write as follows:
account.access_product_product_account_user,product.product.account.user,product.model_product_product,account.group_account_user,1,0,1,1
Just replace id with original_module_name.id .
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 23
|
995 | ||
|
1
Sep 23
|
1908 | ||
|
0
Aug 23
|
6 | ||
|
2
Aug 23
|
928 | ||
|
1
Dec 23
|
2068 |