Hello,
I am having an issue with Odoo 8, When I try to print a quotation or an invoice I get this error everytime. Is it possible to know where I can check in the settings the report, and if it is a template that I can use to add in Odoo?
Error details:
Error "Template 'report.external_layout' not found" while evaluating
"translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"
Qweb error message:
Could not evaluate expression "translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"
Traceback
Traceback (most recent call last):
File "/opt/odoo/addons/website/models/ir_http.py", line 204, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 618, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch
result = request.dispatch()
File "/opt/odoo/openerp/http.py", line 636, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 295, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 292, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 755, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 388, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/report/controllers/main.py", line 62, in report_routes
html = report_obj.get_html(cr, uid, docids, reportname, data=options_data, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/report/models/report.py", line 171, in get_html
return self.render(cr, uid, [], report.report_name, docargs, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/report/models/report.py", line 147, in render
return view_obj.render(cr, uid, template, values, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/website/models/ir_ui_view.py", line 172, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1007, in render
return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
g_inner.append(self.render_node(current_node, qwebcontext))
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 426, in render_tag_call
d[0] = self.render_element(element, template_attributes, generated_attributes, d)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
g_inner.append(self.render_node(current_node, qwebcontext))
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 416, in render_tag_foreach
ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
g_inner.append(self.render_node(current_node, qwebcontext))
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 361, in render_tag_raw
inner = self.eval_str(template_attributes["raw"], qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 205, in eval_str
val = self.eval(expr, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 197, in eval
raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 194, in eval
return qwebcontext.safe_eval(expr)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 80, in safe_eval
return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)
File "/opt/odoo/openerp/tools/safe_eval.py", line 313, in safe_eval
return eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/opt/odoo/addons/report/models/report.py", line 131, in translate_doc
return view_obj.render(cr, uid, template, qcontext, context=ctx)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/website/models/ir_ui_view.py", line 172, in render
return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1007, in render
return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node
result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
g_inner.append(self.render_node(current_node, qwebcontext))
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call
return self.render(cr, uid, template, d)
File "/opt/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render
return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 190, in get_template
raise QWebTemplateNotFound("Template %r not found" % name, template=origin_template)
QWebException: "Template 'report.external_layout' not found" while evaluating
"translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"
Many thanks.
José Carlos