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?
You can override that by inheritance by defining security file in your custom module, for that you have to do:-
- create a 'security' folder and 'ir.model.access.csv' in your custom module.
- make sure you added that file path in " openerp.py " file
- For better understanding we can take an Example. Let us assume that you want to change security access right in 'hr' module
- for changing this you have to define new access right in your module like this:-
Hope this helps....
I tried it in odoo 9 community, but i'm getting following error: "no dataset found for external id 'model_hr_employee' in field Object"
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/28/15, 7:17 AM|
|Seen: 868 times|
|Last updated: 11/21/16, 9:38 AM|