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!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 9 20
|
6509 | ||
|
0
thg 11 23
|
2749 | ||
|
1
thg 3 22
|
2636 | ||
|
1
thg 1 22
|
7112 | ||
|
0
thg 4 24
|
5170 |