Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3725 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 22
3283
0
říj 23
8518
1
pro 22
2981
0
říj 21
2432
1
čvc 21
2661