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

i want to set multiple domain with or condition <field name="domain">[ ('is_pattern','=',True)]</field> or is_die = true

now i m using '|' sign for or condition but it is giving an error

what is the proper syntax

الصورة الرمزية
إهمال
أفضل إجابة

Openerp uses Polish Notation in domain and search parameters. So your code will be:

<field name="domain">['|', ('is_pattern','=',True), ('is_die','=',True)]</field>
الصورة الرمزية
إهمال