Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2941 Vizualizări

Hello,


I need to provide a Manager of the Parent department with access to a record of the child's department. 

I created a domain: ['|', '|', '|', '|',
('x_studio_department.manager_id.user_id', '=', user.id),
('x_studio_department.parent_id.manager_id.user_id', '=', user.id), ('x_studio_department.parent_id.parent_id.manager_id.user_id', '=', user.id),
('x_studio_department.parent_id.parent_id.parent_id.manager_id.user_id', '=', user.id),
('x_studio_department.parent_id.parent_id.parent_id.parent_id.manager_id.user_id', '=', user.id)]
but would like to minimize it's length and complexity.

Could you please advise how to rewrite it to avoid multiple 'parent' levels, and to provide access to all Managers of higher levels??

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
ian. 24
3264
0
ian. 24
1563
0
dec. 20
2117
1
sept. 19
4908
0
iun. 17
3157