Skip to Content
Menu
This question has been flagged
2 Replies
2873 Views

I am trying to modify the record rule that allows the project responsibles to see all the projects. The rule is the next:

Project: project manager: see all which applies to the model project and has the next domain [('1','=',1)].

I am trying to modify the domain and this is what I am writing:

[('user_id','=',user.id)]

The record rule is working beacuse I don't get any error, but a project manager can view all project, although he is not the responsible. I hope you can help. Thank you in advance

Avatar
Discard
Author Best Answer

The rule was not working because there is another rule applied to employees (a project manager is also an employee). This rule allows all employees to see all the projects. Now I have to combine these rules so they do what I want.

Avatar
Discard
Best Answer

What about create an list of user id (the manager and all the employee under his supervision) and then use that list like [('user_id','in',user_ids)]

Avatar
Discard