Odoo Help

0

How to restrict user to access his own customer

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

--Ankit H Gandhi(AHG)--
1081
| 5 3 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

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

--Ray Carnes--
16651
| 9 7 9
Atlanta, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

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: 836 times
Last updated: 3/30/16, 9:42 AM