Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Hide a product (flag based) on a quotation/sale order (Odoo V15)

形象
odoo
形象
丢弃
1 答案
0
形象
odoo
最佳答案

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.

1 备注
形象
丢弃
形象
odoo
-

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