Skip to Content
Menu
This question has been flagged
1 Odpoveď
3285 Zobrazenia

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

Avatar
Zrušiť
Best Answer

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.

Avatar
Zrušiť
Autor

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

Related Posts Replies Zobrazenia Aktivita
1
aug 23
2780
1
nov 22
2758
4
okt 21
7474
2
aug 19
36033
1
júl 15
13041