This question has been flagged
1 Reply
5567 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??


Avatar
Discard
Best Answer

& 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.


Avatar
Discard