i have a model test.test ,its a custom group group_insurance_agency
class test_test(osv.Model):
_name = 'test.test'
-------------------------
<record id="group_insurance_agency" model="res.groups">
<field name="name">Agency/ Manager</field>
</record>
---------------------
scenario---------------
i am creating 2 users access this model
user1 and user2 with username and password
when user1 logged in and create a record also user2 lgged in and crete another record in test.test model
here the problem is I dont want to show user1 record to user2. How to restrict this case by ir.rule need a help,
----------------------------------------
How to rewrite below code ,or any other way need a help...
<record model="ir.rule" id="ir_values_my_ins_rule">
<field name="name">INS Rule</field>
<field name="model_id" ref="model_test_test"/>
<field name="domain_force">[('user_id','=',user.id)]</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_unlink" eval="True"/>
<field name="perm_create" eval="True"/>
</record>