Skip to Content
Menu
This question has been flagged
1 Reply
2183 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
4
Jul 24
3348
0
Sep 24
3774
0
Dec 21
1006
0
Dec 20
1604
0
Feb 24
457