Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2849 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
čvc 24
4822
0
zář 24
5353
0
pro 21
2289
0
pro 20
3012
2
srp 25
3638