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

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)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 24
7808
1
ก.ย. 23
2472
7
มิ.ย. 20
6901
7
ก.ค. 18
20960
0
พ.ย. 22
80