To overwrite ACL permission in Odoo, you have to overwrite id of that ACL record.
For example by default in Employee Appraisals module Human Resource/ Officer user group is given full permissions as follow.
id - access_survey_page_hr_user
name - survey.page.hr.user
model_id:id - survey.model_survey_page
group_id:id - base.group_hr_user
perm_read - 1
perm_write - 1
perm_create - 1
perm_unlink - 1
and later in your customized module you decide to revoke unlink permission for that user group.
you have to just keep exact id and change permissions section. ACL record will be as follow:
id - access_survey_page_hr_user
name - survey.page.hr.user
model_id:id - survey.model_survey_page
group_id:id - base.group_hr_user
perm_read - 1
perm_write - 1
perm_create - 1
perm_unlink - 0
Your answer
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!
Keep Informed
About This Forum
This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.
Read GuidelinesQuestion tools
Stats
Asked: 8/21/15, 4:37 PM |
Seen: 5187 times |
Last updated: 8/21/15, 4:38 PM |