Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to set multiple domain in or condition

By
mihir shah
on 5/11/13, 5:35 AM 1,801 views

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

1

Francesco OpenCode

--Francesco OpenCode--
3608
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 5/11/13, 6:02 AM

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

<field name="domain">['|', ('is_pattern','=',True), ('is_die','=',True)]</field>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/11/13, 5:35 AM
Seen: 1801 times
Last updated: 3/16/15, 8:10 AM