跳至內容
選單
此問題已被標幟
1 回覆
3015 瀏覽次數

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
2498
1
11月 22
2457
4
10月 21
6975
2
8月 19
34864
1
7月 15
12798