콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3685 화면

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
8057
1
9월 23
2651
7
6월 20
7138
7
7월 18
21197
0
11월 22
80