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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Dear Vinod,
You need to inherit Customer window action and add domain like below.
[('user_id', '=', uid)]
Best Regards,
Ankit H Gandhi.
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.
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)]
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 24
|
31 | ||
|
1
Dec 24
|
79 | ||
|
0
Nov 24
|
53 | ||
|
0
Nov 24
|
68 | ||
|
1
Oct 24
|
171 |