İçereği Atla
Menü
Bu soru işaretlendi
2985 Görünümler

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??

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 24
3302
0
Oca 24
1585
0
Ara 20
2144
1
Eyl 19
4930
0
Haz 17
3181