Odoo Help

2

0
2 Answers
9
Avatar

Baiju KS India

--Baiju KS--
3508
| 6 5 10
Kochi, India
--Baiju KS--
ODOO technical

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

Baiju KS India
3/28/15, 9:10 AM

Hi,

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

access_hr_employee_user,hr.employee user,model_hr_employee,base.group_hr_user,1,1,1,1

- for changing this you have to define new access right in your module like this:-

hr.access_hr_employee_user,hr.employee user,model_hr_employee,base.group_hr_user,1,0,0,0 


Hope this helps....

1
11/21/16, 9:38 AM

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"


my code:

hr.access_hr_employee_user,hr.employee user,model_hr_employee,base.group_hr_user,1,0,0,0
hr.access_hr_department_user,hr.department.user,model_hr_department,base.group_hr_user,1,0,0,0
1 Comment
Auditum AG, Paul Oliver Franke Germany
11/21/16, 9:53 AM

i got it: you've got to inherit the model thingy as wel, like so:

[...] hr.model_hr_employee,base.group_hr_user,1,0,0,0

Ask a Question
Tag
Keep Informed
2 follower(s)
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