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 | etc.
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"
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/28/15, 7:17 AM|
|Seen: 1756 times|
|Last updated: 11/21/16, 9:38 AM|