Skip to Content
Menu
This question has been flagged
1 Reply
1863 Views

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?


Avatar
Discard
Author Best Answer

'website_blog' was missing from dependencies.

Avatar
Discard
Related Posts Replies Views Activity
1
May 24
952
1
Dec 22
23147
1
Sep 21
3843
4
May 21
18005
6
Jan 21
43060