Help

0

Restrict sales reps from seeing other contacts

Avatar
Hamid Darabi

I have Odoo 9 installed. We need to restrict sales reps to see each other's contacts. I wrote a record rule so sales reps see all contacts they've created plus those that someone assigned to them(by choosing the sales rep's name in the Sales person field). This is my rule definition:
['|',('user_id','=',user.id),('create_uid','=',user.id)]
Everything works fine in my contact list and customer list but as soon as I open the sales dashboard or pipeline, I get this error:
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: res.users, Operation: read)
I also gave res.users read permission to my group. What am I missing here?


Avatar
Discard