Odoo Help


Problem with ir.rule domain_force. Why it is getting same error?

on 8/17/15, 9:59 AM 1,171 views

I keep getting this error(Document type: res.users, Operation: read). Why?

<record id="my_module_rule_personal_hosts" model="ir.rule">

<field name="name">Only customers</field>

<field ref="model_res_partner" name="model_id"/>

<field name="domain_force">['|',('user_id','=',user.id), ('user_id', '=', False),('customer', '!=', False) ]</field>

<field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>

<field name="perm_read" eval="True"/>

<field name="perm_write" eval="True"/>

<field name="perm_create" eval="True"/>

<field name="perm_unlink" eval="False"/>


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

2 follower(s)


Asked: 8/17/15, 9:59 AM
Seen: 1171 times
Last updated: 5/2/17, 5:26 AM