Hi there!
I have an xml file which creates many ir.rule's and that's ok. But one rule in particular is giving problems, I don't understand why. This is the rule which originates the error:
<record id="website_blog_blog_comp_rule" model="ir.rule">
<field name="name" >website blog multi-company</field>
<field name="model_id" ref="website_blog.model_blog_blog"/>
<field name="global" eval="True"/>
<field name="domain_force"> ['|', ('website_id.company_id', 'in', company_ids), ('website_id.company_id', '=', False)]</field>
</record>
as a reference, this rule works greate, as many other do:
<record id="website_rewrite_comp_rule" model="ir.rule">
<field name="name" >website rewrite multi-company</field>
<field name="model_id" ref="website.model_website_rewrite"/>
<field name="global" eval="True"/>
<field name="domain_force"> ['|', ('website_id.company_id', 'in', company_ids), ('website_id.company_id', '=', False)]</field>
</record>
Any idea?