Odoo Help

1

Access Denied by record rules for operation! Cause?

By
Martin
on 4/10/13, 11:48 AM 3,557 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: 186.42.57.48 - - [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 -
0

Martin

--Martin--
1978
| 5 6 8
Cornwall, Canada
--Martin--

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

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

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

0 follower(s)

Stats

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