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

Hello,

I have added some information in res.partner modules, I would like to select a partner which belongs specific categories.

I can add a domain on the field, but I have to put the id of the category.

e.g

<field name="groupe" placeholder="Groupe" domain="[('category_id', '=', 19)]"/>

Is it possible to replace this by a search on string (or any information from res_partner_category)?

Thanks,

David

아바타
취소
베스트 답변

yes, try ('category_id.name', '=', 'what you want')

아바타
취소
관련 게시물 답글 화면 활동
1
4월 22
7131
5
8월 24
47448
2
4월 24
3008
3
6월 23
6763
2
6월 23
5260