Odoo Help


Record rule for a user

on 6/12/13, 10:41 AM 1,122 views

I have created two user groups.One user group can access only the data which they create I have done this, second user group can access all data created by all users I tried the below code but it is not working .

<record id="property_rule_mat_mgmt_officer" model="ir.rule">
            <field name="name">Material Manage Officer Rule</field>
            <field model="ir.model" name="model_id" ref="model_mat_mgmt"/>
            <field name="domain_force">[(1,'=',1)]</field>
         <field name="groups" eval="[(4,ref('group_mat_mgmt_officer'))]"/>

But when give this user group to a user he can't see any data

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

1 follower(s)


Asked: 6/12/13, 10:41 AM
Seen: 1122 times
Last updated: 3/16/15, 8:10 AM