跳至內容
選單
此問題已被標幟
1 回覆
8617 瀏覽次數

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>
頭像
捨棄