Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
5023 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

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


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 23
1859
0
jul. 23
207
1
apr. 22
3444
1
jun. 25
4871
2
jan. 19
2530