Skip to Content
Menu
This question has been flagged
2 Replies
4984 Views

I had created new role and given permission to all tables and created record rule see own customers ['!',('user_id','=',user.id),('user_id','=',False)]

When i login with the new user role i am getting error model res.user access denied

Avatar
Discard
Best Answer

Dear Vinod,


You need to inherit Customer window action and add domain like below.

[('user_id', '=', uid)]

Best Regards,

Ankit H Gandhi.

Avatar
Discard

Thank you Ankit, your answer solved a part of my issue Can you give me some guidance on how should i proceed to put the same domain on POS customers cuz the debug mode doesn't give the same possibilities on POS screen as on the other views.

Best Answer

Do you have an exclamation in the first pair of quotes?  The valid values are | (the vertical bar or pipe character) or & (the ampersand).


Try:

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

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
31
1
Dec 24
79
0
Nov 24
53
0
Nov 24
68
1
Oct 24
171