Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2832 Weergaven

That users can only see the "Contacts" created by each user. 

E.g. User Peter

I create Contact: "Mary" and "Jhosep".


User: Donald

I create the Contact: "Anthony" and "Marlon".


User Peter should only see users "Mary" and "Jhosep" and

User Donal should only see users "Anthony" and "Marlon".


----------------------------------------------------

Que los usuarios solo puedan ver los "Contactos" creados por cada uno 


Ej. Usuario Peter

Creo el Contacto: "Mary" y "Jhosep"


Usuario: Donald

Creo el Contacto: "Anthony" y "Marlon"


El usuario Peter solo debe ver los usuarios "Mary" y "Jhosep" y
El usuario Donal solo debe ver los usuarios "Anthony" y "Marlon"



 

Avatar
Annuleer
Beste antwoord

Hi,

Create a record rule with below condition:

[('create_uid','=',user.id)]

You can create record rule by code like below:

<record id="own_partner" model="ir.rule">
<field name="name">Partner list</field>
<field ref="model_res_partner" name="model_id"/>
<field name="domain_force">[('create_uid','=',user.id)]</field>
<field name="groups" eval="[(4, ref('module_name.group_name'))]"/>
</record>
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
jul. 24
4816
0
sep. 24
5345
0
dec. 21
2270
0
dec. 20
3004
2
aug. 25
3627