This question has been flagged
2516 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'))]"/>
   </record>

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

Avatar
Discard