İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2973 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 23
2460
1
Kas 22
2434
4
Eki 21
6874
2
Ağu 19
34722
1
Tem 15
12776