Odoo Help


This community 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.


Record rule for a user

on 6/12/13, 10:41 AM 714 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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