跳至内容
菜单
此问题已终结
1 回复
2985 查看

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
2463
1
11月 22
2437
4
10月 21
6907
2
8月 19
34773
1
7月 15
12782