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

Errors with customer/supplier invoices when trying to send by email/print

By
JonGillibrand
on 2/26/15, 10:02 AM 1,100 views

On a hosted instance at odoo.com I found that I cannot print any invoices or use the send by email functions. I tried installing the lastest build last night in a vm so I could update wkhtmltopdf as I thought this might be whats causing the problem as Ive seen it is effecting others in a similar manner. Both installations still give me the following errors when trying to print/email any type of invoice:

Send by email:

Odoo Server Error

Traceback (most recent call last): File "/home/odoo/src/odoo/8.0/openerp/http.py", line 530, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 567, in dispatch result = self._call_function(**self.params) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 303, 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 300, in checked_call return self.endpoint(*a, **kw) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 796, in __call__ return self.method(*args, **kw) File "/home/odoo/src/odoo/8.0/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 949, in call_kw return self._call_kw(model, method, args, kwargs) File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 941, 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 241, 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 241, 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 241, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/email_template/email_template.py", line 514, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 186, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 171, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 147, in render return view_obj.render(cr, uid, template, values, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_ui_view.py", line 1015, 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 241, 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 439, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, 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 439, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, 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 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 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 314, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module> QWebException: "argument of type 'NoneType' is not iterable" while evaluating 'main_object in main_object and main_object.website_meta_description or website_meta_description'

 

Print:

Odoo Server Error

Traceback (most recent call last): File "/home/odoo/src/odoo/8.0/addons/report/controllers/main.py", line 121, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/home/odoo/src/odoo/8.0/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/8.0/addons/report/controllers/main.py", line 65, in report_routes pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 186, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 171, 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 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/addons/report/models/report.py", line 147, in render return view_obj.render(cr, uid, template, values, context=context) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/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 "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/src/odoo/8.0/openerp/addons/base/ir/ir_ui_view.py", line 1015, 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 241, 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 439, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, 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 439, in render_tag_call return self.render(cr, uid, template, d) File "/home/odoo/src/odoo/8.0/openerp/api.py", line 241, 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 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 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 314, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module> QWebException: "argument of type 'NoneType' is not iterable" while evaluating 'main_object in main_object and main_object.website_meta_description or website_meta_description'

0
JonGillibrand
On 2/26/15, 8:41 PM

Just did a Git Pull to the odoo directory then updated the modules from the backend to make sure there was no update pending to the sales module Im still on 8.0.1.0 and with the same problem

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: 2/26/15, 10:02 AM
Seen: 1100 times
Last updated: 3/16/15, 8:10 AM