Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3037 Переглядів

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

Related Posts Відповіді Переглядів Дія
1
серп. 23
2531
1
лист. 22
2466
4
жовт. 21
6993
2
серп. 19
34921
1
лип. 15
12810