Odoo Aide

1

0
3 Answers
2
Bruno PLANCHER
06/01/2015 05:58

Hello Mudi Vand,

Your problem is that you try to apply a child_of on res.users model (which have not parent hierarchy, as long as i know).

Have you tried to use ONLY this rule: 

[('id', 'child_of', [employee.id for employee in user.employee_ids])]

With that, i think it will filter the Employees using the employee "profile" of the current user. The child_of will be applied to the hr.employee model (which have parent_id field, the default field to be used by child_of operator).

Does it work ?

Regards

0
Faris
09/02/2016 08:55

Where I should apply the obove rule

I mean witch group of users

Regards, 

Poser une question
Writer
Keep Informed
1 Abonné(e)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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now