Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3025 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
ago 23
2519
1
nov 22
2462
4
ott 21
6982
2
ago 19
34887
1
lug 15
12802