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!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
0
sep 20
|
6361 | ||
|
0
nov 23
|
2507 | ||
|
1
mar 22
|
2456 | ||
|
1
jan 22
|
6942 | ||
|
0
apr 24
|
4302 |