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

Hi,

I found the info at the address https://odootricks.tips/about/building-blocks/domain-in-odoo/

However, if I try to put the following code into the domain code widget in an Automated Action

['&',('x_studio_equipment_root_category','=',Consumable),('x_studio_equipments_minimum_quantity','=',x_studio_equipments_quantity)]

I get an error message "Domain not properly formed".

How can I enter such code into the domain of my automated action with Studio, please ?

Thanks.

Аватар
Відмінити
Найкраща відповідь

Hi,

Instead of using the domain on the Automated Action, try to write a python code consist of if else statements. It helped a lot in combating the limitations of the domain field.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 22
3315
0
жовт. 23
8595
1
груд. 22
3013
0
жовт. 21
2461
1
лип. 21
2754