Odoo Help

Welcome!

This community 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.

0

Access Denied Document type: product, Operation: read

By
Kris Coenen
on 9/17/13, 11:15 AM 7,061 views

Hi when i want the portal user to go see the products i get the following error

Access Denied

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Product, Operation: read)

i tryed almost everything in the user rights but i can't find the solution for this problem.

Edit 1

If i give the portal user employee access he can access the product form. i've made a copy of this user group and added it to the poertal user as an inherited group. with this group the user can't access the productform. he can go to the treeview but not the form view

maybe, you have to check all rules that relative this object. (Product)

OpenERP Vietnam
on 9/18/13, 2:45 AM

ok 'ill look into it

ANALYS4IT, Kris Coenen
on 9/18/13, 12:08 PM

Still didn't work i think there is a problem with the global rules but i'm currenly testing what rule

ANALYS4IT, Kris Coenen
on 9/19/13, 5:10 AM

Kris, how you got the issue fixed?

dirtyHandsPHP
on 10/9/14, 8:45 AM
1
Binh Nguyen Xuan
On 7/17/14, 1:15 AM

In my case, this error was raised by: def check_field_access_rights

This is use guide:

"""
        Check the user access rights on the given fields. This raises Access
        Denied if the user does not have the rights. Otherwise it returns the
        fields (as is if the fields is not falsy, or the readable/writable
        fields if fields is falsy)

 """

Now I check in server log:

WARNING ********* openerp.osv.orm: Access Denied by ACLs for operation: read, uid: 265, model: product.product, fields: standard_price
ERROR:openerp.netsvc:Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Product, Operation: read)

Reason why I faced this issue because field standard_price was set in group base.group_user and user which logged not belong to this group. Now I can add new group for this field or add group_user to current user.

Hope that help :)

1
Eric
On 1/8/14, 2:45 PM

I had this problem when I was trying to create a timesheet for my user. Apparently my user acct belonged to a group that did not have Read access to the Products. I removed myself from this group and was then able to create a timesheet for my user. This is what I did to find out which groups my user belonged to:

Step 1: Open pgAdmin and open up the SQL query editor

Step 2: Type: select "gid" from "res_groups_users_rel" where "uid" = '(your user id)'

Step 3: When you get a list of all the group ids that your user id belongs to, then you can find the group names from the ids that were returned in the res_groups table

Step 4: Now you can add the Read access to the groups your user belongs to on the Products table, or you can remove your user from the group that does not have Read access to the Products table.

In my situation, my user acct belonged to a group that did not need Read access to the Products table so instead of granting Read access to that group, I just removed my user acct from that group and then my error was cleared

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 9/17/13, 11:15 AM
Seen: 7061 times
Last updated: 3/16/15, 8:10 AM