تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3646 أدوات العرض

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
أغسطس 22
3226
0
أكتوبر 23
8404
1
ديسمبر 22
2912
0
أكتوبر 21
2368
1
يوليو 21
2618