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

How can I filter a Many2Many field for containing zero items.

Example: I'm trying to filter tasks that have 0 followers (message_follower_ids).

[['message_follower_ids','=','False']] Returns no results, but there should be many.


Frank

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hi Mohammed,

I've tried this. But it also gives no results.

<filter string="Task without follower(s)" domain="[('message_follower_ids', '=', False)]"/>

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

Don't use false as a string.

try this ('message_follower_ids', '=', False)

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 24
7785
1
سبتمبر 23
2446
7
يونيو 20
6855
7
يوليو 18
20925
0
نوفمبر 22
80