تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6820 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 22
80
1
يوليو 21
2525
1
يوليو 21
3884
9
فبراير 16
48864
1
أكتوبر 15
10499