Skip to Content
Menu
This question has been flagged
1 Reply
3324 Views

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?

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 23
995
1
Sep 23
1908
0
Aug 23
6
2
Aug 23
928
1
Dec 23
2068