Odoo Help

Welcome!

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

0

Error when trying to print invoice!!! QWebException Odoo 9 Spanish

By
David
on 11/2/15, 2:50 PM 1,434 views

Odoo Server Error

Traceback (most recent call last):

File "/home/usuario/Software/odoo/addons/report/controllers/main.py", line 101, in report_download

response = self.report_routes(reportname, docids=docids, converter='pdf')

File "/home/usuario/Software/odoo/openerp/http.py", line 465, in response_wrap

response = f(*args, **kw)

File "/home/usuario/Software/odoo/addons/report/controllers/main.py", line 45, in report_routes

pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=data, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/addons/report/models/report.py", line 156, in get_pdf

html = self.get_html(cr, uid, ids, report_name, data=data, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/addons/report/models/report.py", line 130, in get_html

return self.render(cr, uid, [], report.report_name, docargs, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/addons/report/models/report.py", line 106, in render

return view_obj.render(cr, uid, template, values, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/addons/website/models/ir_ui_view.py", line 141, in render

return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/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 "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1065, in render

return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render

return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', ''))

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 296, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 447, in render_tag_call

d[0] = self.render_element(element, template_attributes, generated_attributes, d)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 425, in render_tag_foreach

ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 324, in render_element

raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 319, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 458, in render_tag_call

res = self.render(cr, uid, template, d)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 251, in render

element = self.get_template(id_or_xml_id, qwebcontext)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_qweb.py", line 171, in get_template

document = qwebcontext.loader(name)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1063, in loader

return self.read_template(cr, uid, name, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_ui_view.py", line 938, in read_template

return self._read_template(cr, uid, view_id, context=context)

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "<string>", line 2, in _read_template

File "/home/usuario/Software/odoo/openerp/tools/cache.py", line 85, in lookup

value = d[key] = self.method(*args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_ui_view.py", line 923, in _read_template

arch = self.read_combined(cr, uid, view_id, fields=['arch'], context=context)['arch']

File "/home/usuario/Software/odoo/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/home/usuario/Software/odoo/openerp/addons/base/ir/ir_ui_view.py", line 635, in read_combined

view_arch = etree.fromstring(view['arch'].encode('utf-8'))

File "lxml.etree.pyx", line 3103, in lxml.etree.fromstring (src/lxml/lxml.etree.c:70569)

File "parser.pxi", line 1828, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:106403)

File "parser.pxi", line 1716, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:105194)

File "parser.pxi", line 1086, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:99876)

File "parser.pxi", line 580, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:94350)

File "parser.pxi", line 690, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:95786)

File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:94853)

QWebException: Entity 'oacute' not defined, line 25, column 46



Error is produced by invoice view Spanish translation. Accents are wrong! Solved without accents.

David
on 11/2/15, 5:35 PM
1
Luis Triana
On 1/29/16, 3:25 PM

Activate the developer mode > Settings > Translations > Applications Terms > Translated Terms and search for the Translation Value oacute only change the words for no accent word or for the direct spanish translation with accent.

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/2/15, 2:50 PM
Seen: 1434 times
Last updated: 1/30/16, 5:11 AM