コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3463 ビュー

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
8月 24
7780
1
9月 23
2437
7
6月 20
6854
7
7月 18
20913
0
11月 22
80