Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7152 มุมมอง

In a model, I have a many2many relation.

In a rule, I need to filter access for users that exist in that many2many


I've tried:

['|','|',('employee_id.user_id.id','=',user.id),('employee_id.user_id.id','in',[x.id for x in user.project_members]),('project_manager_ids','in',[user.id])]


But it doesn't work


I've also tried ...

('project_manager_ids','=',[user.id]) - no success either


Can we use - in a domain -, a many2many field in the left side?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

('project_manager_ids','in',[user.id]) is the right way to do it


There just a bug somewhere else that was preventing things from working properly

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 22
80
Many2many domain not working แก้ไขแล้ว
1
ก.ค. 21
2740
Many2many domain not working แก้ไขแล้ว
1
ก.ค. 21
4172
9
ก.พ. 16
49204
1
ต.ค. 15
10735