Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2656 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

'website_blog' was missing from dependencies.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 24
2232
1
pro 22
24680
1
zář 21
4960
4
srp 25
19754
6
led 21
44672