跳至内容
菜单
此问题已终结
3 回复
5021 查看

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

形象
丢弃
最佳答案

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>

形象
丢弃
最佳答案

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.

形象
丢弃
编写者 最佳答案

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


形象
丢弃
相关帖文 回复 查看 活动
1
8月 23
1858
0
7月 23
207
1
4月 22
3443
1
6月 25
4871
2
1月 19
2530