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)]
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
3
dez. 25
|
1591 | |||
|
|
1
nov. 25
|
579 | ||
|
2
nov. 25
|
675 | |||
|
2
out. 25
|
715 | |||
|
0
out. 25
|
1671 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.