Skip to content

Instantly share code, notes, and snippets.

@lukebranch
Created September 19, 2017 08:49
Show Gist options
  • Save lukebranch/38892088356649dfe07870c3c7335ffc to your computer and use it in GitHub Desktop.
Save lukebranch/38892088356649dfe07870c3c7335ffc to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/opt/odoo/server/openerp/addons/report/controllers/main.py", line 96, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/opt/odoo/server/openerp/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/server/openerp/addons/report_custom_filename/controllers/report_controller.py", line 18, in report_routes
reportname, docids=docids, converter=converter, **data)
File "/opt/odoo/server/openerp/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/server/openerp/addons/report/controllers/main.py", line 45, in report_routes
pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=data, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/report/models/report.py", line 168, in get_pdf
html = self.get_html(cr, uid, ids, report_name, data=data, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/report/models/report.py", line 142, in get_html
return self.render(cr, uid, [], report.report_name, docargs, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/report/models/report.py", line 118, in render
return view_obj.render(cr, uid, template, values, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/website/models/ir_ui_view.py", line 166, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/web_editor/models/ir_ui_view.py", line 29, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/base/ir/ir_ui_view.py", line 1081, in render
return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
File "/opt/odoo/server/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 254, in render
return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 448, in render_tag_call
d[0] = self.render_element(element, template_attributes, generated_attributes, d)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 426, in render_tag_foreach
ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 448, in render_tag_call
d[0] = self.render_element(element, template_attributes, generated_attributes, d)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_if
return self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element
generated_attributes= name == "t" and generated_attributes or ''))
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 485, in render_tag_set
qwebcontext[template_attributes["set"]] = self.eval_object(template_attributes["value"], qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 198, in eval_object
return self.eval(expr, qwebcontext)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 195, in eval
raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 192, in eval
return qwebcontext.safe_eval(expr)
File "/opt/odoo/server/openerp/addons/base/ir/ir_qweb.py", line 104, in safe_eval
return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)
File "/opt/odoo/server/openerp/tools/safe_eval.py", line 298, in safe_eval
return eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/opt/odoo/server/openerp/fields.py", line 830, in __get__
self.determine_value(record)
File "/opt/odoo/server/openerp/fields.py", line 930, in determine_value
record._prefetch_field(self)
File "/opt/odoo/server/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/models.py", line 3310, in _prefetch_field
result = self.read([f.name for f in fs], load='_classic_write')
File "/opt/odoo/server/openerp/api.py", line 248, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/server/openerp/models.py", line 3248, in read
values[name] = field.convert_to_read(record[name], use_name_get)
File "/opt/odoo/server/openerp/models.py", line 5760, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/opt/odoo/server/openerp/fields.py", line 823, in __get__
return record._cache[self]
File "/opt/odoo/server/openerp/models.py", line 6140, in __getitem__
return value.get() if isinstance(value, SpecialValue) else value
File "/opt/odoo/server/openerp/fields.py", line 39, in get
raise self.exception
QWebException: (u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: sale.order.line, Operation: read)', None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment