Odoo Help


What is the correct polish notation for "a | b & c"

on 11/5/15, 2:27 AM 741 views

I am configuring a domain_force for an ir.rule record, and the domain is just like “condition_1 or condition_2 and condition_3".

The system will raise error XMLSyntaxError when I set the domain_force value to ['|', (condition_1), '&', (condition_2), (condition_3)]. However, it is ok when i set the value to  ['|', (condition_1), (condition_2), (condition_3)].

So, what is the correct statement for my condition??

On 11/5/15, 2:38 AM

& is a special symbol for XML, it should be represented in XML by it's code, which is &

['|', (condition_1), '&', (condition_2), (condition_3)]

See also this answer.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/5/15, 2:27 AM
Seen: 741 times
Last updated: 11/10/15, 10:45 PM