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

Hello everyone,

I am using Odoo 12 and need your help on setting a domain based on variable set on "ir.config_parameter".
On invoice form view, I need to change "partner_id" domain to include a specific value from "ir.config_parameter".

My actual domain is:

      domain="[('customer', '=', True)]"

I need to check the value of "ir.config_parameter" (True or False) and depending on the value, include it on the domain.
So, I need to do something like:

      domain="[('customer', '=', True), (what to enter here.......)]"

Is there any way I can achieve this?

Thank you in advance

Best regards

PM


아바타
취소

Odoo Tips, helps in future: http://learnopenerp.blogspot.com

작성자

Thank you @Sehrish. I usually use it as a reference. :o)

베스트 답변

Bring that ir.config_parameter's value to your res.partner model by adding new field for that.
Then apply domain just like ('field_name', '=', True/False)

아바타
취소
작성자

Great @Cybrosys Techno Solutions Pvt.Ltd,

It was some tricky but I achieve what I need with your help.

Thank you very much

Best regards

관련 게시물 답글 화면 활동
3
1월 20
6935
2
7월 25
2100
1
5월 24
2752
3
10월 23
9114
1
9월 23
3435