تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3011 أدوات العرض

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
أغسطس 23
2497
1
نوفمبر 22
2456
4
أكتوبر 21
6974
2
أغسطس 19
34861
1
يوليو 15
12798