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

I created a Many2one field in Sales Order named x_studio_releted_subscription (model: sale.order).

The field should show all subscription orders that have the same partner and allow me to select one.

How can I do this using a domain?

I tried using:

[("partner_id", "=", partner_id)]

but I get the error: Domain is invalid. Please correct it.

아바타
취소
작성자

You are the best, Thanks

베스트 답변

You can set it [['partner_id', '=', 1]]  Then go to the view xml (Need devloper mode to be activated), and search for studio customization then find your domain in XML and replace 1 with partner_id then save.

Hope it helps.

아바타
취소
관련 게시물 답글 화면 활동
1
2월 24
2207
3
10월 18
4242
1
7월 25
1535
naked domain set up 해결 완료
3
7월 25
4656
0
5월 25
1081