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

I have restricted access to users in the Contact app. I only want them to see contacts they created so I added the record rule below:

[('create_uid','=',user.id)]

But when the user views a contact (that they created) the following error message appears:

"

Due to security restrictions, you are not allowed to access 'Contact' (res.partner) records. Records: feryialmangou (id=7) User: feryialmangou (id=6) This restriction is due to the following rules: - Contact Restriction User Contact your administrator to request access if necessary.

"



How do I make it so that the error message does not appear? As it gets annoying for the users. 

Avatar
Discard
Best Answer

Hi Feryial,


Try to replace your record rule with this rule it helps to show only ones created by the user.


Change:

[('create_uid','=',user.id)]

To:

['|',('user_id','=',user.id),('user_id','=',False)]


Best Regards.

Avatar
Discard
Related Posts Replies Views Activity
3
Jan 24
622
1
May 23
1243
0
Mar 21
68
1
Dec 20
5433
0
Aug 19
2965