Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2839 Представления

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"



 

Аватар
Отменить
Лучший ответ

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>
Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
июл. 24
4818
0
сент. 24
5348
0
дек. 21
2275
0
дек. 20
3007
2
авг. 25
3631