Skip to Content
Menu
This question has been flagged
3 Replies
4009 Views

hello ,

 i am new in odoo12 community 

i want to do record rules  for my salesperson only seen own contact not seen other salesperson contact

Avatar
Discard
Best Answer

Hello Prerak,

Sales-person view only his record use below Record Rule.

<record id="rule_id" model="ir.rule">
<field name="name">for Salesperson</field>
<field name="model_id" ref="model_(model_name)"/>
<field name="domain_force">[('partner_id','=',user.partner_id.id)]</field>
<field name="groups" eval="[(4,ref('base.group_user'))]"/>
</record>

Avatar
Discard
Best Answer

Hello Desai,

write record rule for res.partner module and assign it to See own documents group and one more record rule with [(1,'=',1)] for res.partner module and assign it to Manager group.

Avatar
Discard
Author Best Answer

i am not a developer so ,i can't use your code


Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
725
0
Jul 23
207
1
Apr 22
2094
1
Jul 19
3601
2
Jan 19
1642