Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1705 Vizualizări

Hi, I have been stuck for a few days for the following function.


I need to restrict some contacts for some users (not only in the view, in all modules). I have tried to use Registration Rules but it doesn't work. 


An account in my odoo should only use or see some contacts, I placed this user in a group with the rule: 



['|', ('user_id','=',False), ('user_id','=',user.id), ('id','in',[44,46,50])] 




if I do not select any group (global value), the rule works fine, but it is for all users, admin included (that is worse). When I select a specific group in the registration rule (where is the user with restrictions), the registration rule does not work for any user.


What is the correct method?



Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Please refer to the related forum answers

Restrict Access to Contact information

Restrict users to see only his own contacts

Please refer above forum links, you may get an idea how to set the domain and record rules relatedly.


Hope it helps

Imagine profil
Abandonează
Autor

It is partially correct, when I remove the private record rule (as mentioned in the article) , my record rule that I have created runs correctly for the group that I have created as well, but for the rest of the users, the rest of the contacts are not shown and it is incorrect for me.

I need that a specific group can only see some contacts but the rest of the users can see all the contacts as it was at the beginning.

Translated with DeepL.com (free version)

Autor

I should only affect a group of users, not all users.

Cel mai bun răspuns

Do u mean.. Contact  created  by the same user only able to view 

Imagine profil
Abandonează
Autor

Not exactly. I have some contacts ( suppliers), and a list of users (vendors) that should only see and have access to some suppliers, not all, but not necessarily the vendors were the ones who created the contacts, but they are already existing.

Related Posts Răspunsuri Vizualizări Activitate
2
mai 25
1168
1
nov. 23
1960
1
iul. 24
1654
4
dec. 23
24232
1
aug. 22
2042