跳至内容
菜单
此问题已终结

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.

形象
丢弃
相关帖文 回复 查看 活动
1
8月 22
3250
0
10月 23
8474
1
12月 22
2949
0
10月 21
2399
1
7月 21
2638