Odoo Help


Access Denied by record rules for operation! Cause?

on 4/10/13, 11:48 AM 3,396 views

My log file has a large number of exceptions like the one below; what could be the cause?

It happens every time a remote user first connects to my server URL, before any attempt to login.

I expect I have an incomplete or incorrect configuration of portal.

I have installed and configured:

  • auth_signup
  • auth_oauth
  • auth_oauth_signup
  • portal
  • portal_anonymous
  • web

WARNING demo_db openerp.osv.orm: 
  Access Denied by record rules for operation: read, uid: 4, model: res.partner
ERROR demo_db openerp.netsvc: Access Denied
The requested operation cannot be completed due to security restrictions. 
Please contact your system administrator.

(Document type: Partner, Operation: read)
Traceback (most recent call last):

  File "/opt/openerp/server/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)

  File "/opt/openerp/server/openerp/service/web_services.py", line 618, in dispatch
    res = fn(db, uid, *params)

  File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})

  File "/opt/openerp/server/openerp/osv/osv.py", line 144, in wrapper
    raise except_osv(inst.name, inst.value)

except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Partner, Operation: read)')

INFO demo_db werkzeug: - - [10/Apr/2013 11:33:26] "GET /web/binary/image?model=res.partner&field=image_small&id=3&resize=&session_id=6d483e80dd3247a5a23f52676f301286 HTTP/1.1" 200 -


| 5 6 8
Cornwall, Canada

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

On 4/10/13, 11:49 AM

Ha! Asking the question made me understand the mistake I was making.

The answer is simply to ensure that the user anonymous is allowed to access the portal, as follows:

In Settings | Users | Users find and edit the user anonymous. In the Other section of the tab Access Rights, find and ensure the checkbox Portal is checked.

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


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

0 follower(s)


Asked: 4/10/13, 11:48 AM
Seen: 3396 times
Last updated: 3/16/15, 8:10 AM