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

Hi all,

Il would like to create a button (on/off) on the product that react like :

Hide the product line on the template of quotation, sales order and bills if the button is flaged

아바타
취소
베스트 답변

HI Aravelli,

Instead of the button, you can go with Boolean field. 
Please add boolean field in the product template.
Now add the below domain on the product field of your product line on the template of quotation, sales order and bills fields.

domain = "[('your_boolean_field', '=', False)]"  

This will filtered your flagged products when you select it in the product lines product field.

Hope it will help you.

아바타
취소
작성자

Thanks, it sounds great ;)
I now have to find where (in studio I suppose) i can fill in this domain syntax

관련 게시물 답글 화면 활동
1
8월 23
2737
1
11월 22
2705
4
10월 21
7331
2
8월 19
35710
1
7월 15
12997