Odoo Help

0

How to restrict user to access his own customer

By
Vinod Kumar
on 1/19/16, 6:43 AM 1,060 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

1
Ankit H Gandhi(AHG)
On 1/19/16, 10:10 AM

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.

GRS
on 3/30/16, 9:40 AM
1
Ray Carnes
On 1/20/16, 7:30 PM

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)]

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 1/19/16, 6:43 AM
Seen: 1060 times
Last updated: 3/30/16, 9:42 AM