Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3510 Tampilan

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

Avatar
Buang
Penulis Jawaban Terbai

Hi Mohammed,

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

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

Avatar
Buang
Jawaban Terbai

Hi,

Don't use false as a string.

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Agu 24
7823
1
Sep 23
2486
7
Jun 20
6917
7
Jul 18
20975
0
Nov 22
80