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 in stock picking report

By
Jeff Beidler
on 2/4/15, 6:23 PM 980 views

After confirming a sales order, when trying to print the picking report, I get the following traceback:

Traceback (most recent call last): File "/home/openerp/odoo-8.0-20150128/openerp/addons/report/controllers/main.py", line 121, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/home/openerp/odoo-8.0-20150128/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/home/openerp/odoo-8.0-20150128/openerp/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/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/openerp/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/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/openerp/addons/report/models/report.py", line 171, in get_html return self.render(cr, uid, [], report.report_name, docargs, context=context) File "/home/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/openerp/addons/report/models/report.py", line 147, in render return view_obj.render(cr, uid, template, values, context=context) File "/home/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/openerp/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/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_ui_view.py", line 1014, in render return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context) File "/home/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/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 "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/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 "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call return self.render(cr, uid, template, d) File "/home/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 435, in render_tag_call return self.render(cr, uid, template, d) File "/home/openerp/odoo-8.0-20150128/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template) File "/home/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/openerp/odoo-8.0-20150128/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/openerp/odoo-8.0-20150128/openerp/addons/base/ir/ir_qweb.py", line 473, in render_tag_field field = record._fields[field_name] QWebException: 'date_order'

I have looked for the string 'date_order' in the XML report definition, and it isn't found there.  Bug?

Still scratching my head over this one . . .

Jeff Beidler
on 2/17/15, 5:48 PM
0
Jeff Beidler
On 2/17/15, 6:28 PM

Found it.  I was confused because 'date_order' is not in the stock.report_picking view at all.  It turned out to be my custom report headers view, which I had customized for Sales/Purchase Orders, not realizing that the template gets called for all reports.

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/4/15, 6:23 PM
Seen: 980 times
Last updated: 3/16/15, 8:10 AM