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

Cannot print invoice

By
Sébastien Lang
on 10/28/14, 2:27 AM 1,324 views

onClick Print  :

Uncaught SyntaxError: Unexpected end of input

https://mydomain.odoo.com/web?#id=6&view_type=form&model=account.invoice&menu_id=249&action=284:0

--------------------------------------------------------

onClick Print to Email :

OpenERP Server Error

Traceback (most recent call last): File "/home/odoo/src/odoo/8.0/openerp/http.py", line 500, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 517, in dispatch result = self._call_function(**self.params) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 283, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/8.0/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 280, in checked_call return self.endpoint(*a, **kw) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 733, in __call__ return self.method(*args, **kw) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 376, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 948, in call_kw return self._call_kw(model, method, args, kwargs) File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 940, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/email_template/wizard/mail_compose_message.py", line 54, in default_get res.get('model'), res.get('res_id'), context=context File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/email_template/wizard/mail_compose_message.py", line 103, in onchange_template_id values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id] File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/email_template/wizard/mail_compose_message.py", line 167, in generate_email_for_composer_batch template_values = self.pool.get('email.template').generate_email_batch(cr, uid, template_id, res_ids, fields=fields, context=ctx) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/email_template/email_template.py", line 515, in generate_email_batch result, format = self.pool['report'].get_pdf(cr, uid, [res_id], report_service, context=ctx), 'pdf' File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 183, in get_pdf html = self.get_html(cr, uid, ids, report_name, data=data, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 168, in get_html return self.render(cr, uid, [], report.report_name, docargs, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 144, in render return view_obj.render(cr, uid, template, values, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/website/models/ir_ui_view.py", line 173, in render return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 274, in render_node self, element, attribute_name, attribute_value, qwebcontext) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 351, in render_att_att return [(attribute_name[6:], self.eval(attribute_value, qwebcontext))] File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 194, in eval return qwebcontext.safe_eval(expr) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_qweb.py", line 80, in safe_eval return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True) File "/home/odoo/src/odoo/8.0/openerp/tools/safe_eval.py", line 313, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module> QWebException: "'NoneType' object has no attribute 'id'" while evaluating 'website.id if editable else None'

0
Danny
On 2/4/15, 5:01 PM

Hi,

Have you been able to fix this? I have the same problem with a local install on windows 8. Cannot print invoices and get the same unexpected error. Can some one help?

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: 10/28/14, 2:27 AM
Seen: 1324 times
Last updated: 3/16/15, 8:10 AM