Hello guys,
how to make own documents group can see only their own customers,
i am used a record rule for own documents group is
but it is not working,
pease help
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
Hello guys,
how to make own documents group can see only their own customers,
i am used a record rule for own documents group is
Hello Shameem,
# Create Group
<record id="group_partner_access" model="res.groups">
<field name="name">Allow own Customer Only</field>
</record>
# Create Rule
<record id="rule_own_partner" model="ir.rule">
<field name="name">View Own partner</field>
<field ref="model_res_partner" name="model_id"/>
<field name="domain_force">['|',('users_ids','in',user.id),('id','=',user.partner_id.id)]</field>
<field name="groups" eval="[(4, ref('group_partner_access'))]"/>
</record>
Hope this may help you!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|  | 0 सित॰ 20  | 6926 | ||
|  | 0 नव॰ 23  | 3006 | ||
|  | 1 मार्च 22  | 2869 | ||
|  | 1 जन॰ 22  | 7484 | ||
|  | 0 अप्रैल 24  | 6095 |