Created
January 3, 2014 17:53
-
-
Save rvalyi/8242758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************************ browse_record(sale.order, 28) | |
<OpenERPSession {'uid': 5, 'jsonp_requests': {}, 'db': 'v8', 'ecommerce_pricelist': 1, 'context': {'lang': u'en_US', 'tz': False, 'uid': 5}, 'ecommerce_order_id': 28L, 'login': 'public', 'password': 'public', 'website_session_id': 'ccb76573-795b-45f6-b0a7-9f252ea35880'}> | |
2014-01-03 13:52:12,876 32592 WARNING v8 openerp.osv.orm: Access Denied by record rules for operation: read on record ids: [28], uid: 5, model: sale.order | |
2014-01-03 13:52:12,881 32592 ERROR v8 openerp.addons.website.models.ir_http: 500 Internal Server Error: | |
Traceback (most recent call last): | |
File "/home/rvalyi/DEV/oe8/server/openerp/addons/base/ir/ir_http.py", line 117, in _dispatch | |
result = request.dispatch() | |
File "/home/rvalyi/DEV/oe8/server/openerp/http.py", line 411, in dispatch | |
r = self._call_function(**self.params) | |
File "/home/rvalyi/DEV/oe8/server/openerp/http.py", line 194, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/home/rvalyi/DEV/oe8/server/openerp/service/model.py", line 111, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/home/rvalyi/DEV/oe8/server/openerp/http.py", line 189, in checked_call | |
return self.func(*a, **kw) | |
File "/home/rvalyi/DEV/oe8/addons/website_sale/controllers/main.py", line 369, in mycart | |
if order and order.state != 'draft': | |
File "/home/rvalyi/DEV/oe8/server/openerp/osv/orm.py", line 497, in __getattr__ | |
return self[name] | |
File "/home/rvalyi/DEV/oe8/server/openerp/osv/orm.py", line 405, in __getitem__ | |
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write") | |
File "/home/rvalyi/DEV/oe8/server/openerp/osv/orm.py", line 3207, in read | |
result = self._read_flat(cr, user, select, fields, context, load) | |
File "/home/rvalyi/DEV/oe8/server/openerp/osv/orm.py", line 3257, in _read_flat | |
self._check_record_rules_result_count(cr, user, sub_ids, result_ids, 'read', context=context) | |
File "/home/rvalyi/DEV/oe8/server/openerp/osv/orm.py", line 3464, in _check_record_rules_result_count | |
(self._description, operation)) | |
except_orm: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Sales Order, Operation: read)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment