Trợ giúp

0

How to restrict salesperson to show only own customer in Sales > Order > Customer Page Odoo 11

Avatar
Apple Mahmud
I already try with this record rules 
<record id="rules_for_salesperson" model="ir.rule">
<
field name="name">Salesperson Record Rules</field>
<
field name="model_id" ref="sale.model_res_partner"/>
<
field name="domain_force">[('user_id','=',user.id)]</field>
<
field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]" />
</
record>
Ảnh đại diện
Huỷ bỏ
1 Trả lời
0
Avatar
Chris TRINGHAM
Best Answer

Maybe the model should be base.model_res_partner

Ảnh đại diện
Huỷ bỏ