We have some trouble for printing financial report. Odoo 8.
Find under the error message from odoo.
Traceback (most recent call last): File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/report/controllers/main.py", line 125, in report_download response = self.report_routes(reportname, converter='pdf', **dict(data)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/http.py", line 396, in response_wrap response = f(*args, **kw) File "/home/sisalpuser/xoe.services/hltr-2051/server/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/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/report/models/report.py", line 190, in get_pdf html = self.get_html(cr, uid, ids, report_name, data=data, context=context) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/report/models/report.py", line 165, in get_html return particularreport_obj.render_html(cr, uid, ids, data=data, context=context) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/report/models/abstract_report.py", line 66, in render_html return self.pool['report'].render(cr, uid, [], self._template, docargs, context=context) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/report/models/report.py", line 151, in render return view_obj.render(cr, uid, template, values, context=context) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_ui_view.py", line 1029, in render return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 261, in render return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 436, in render_tag_call d[0] = self.render_element(element, template_attributes, generated_attributes, d) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 422, in render_tag_foreach ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 445, in render_tag_call return self.render(cr, uid, template, d) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 261, in render return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 373, in render_tag_esc inner = widget.format(template_attributes['esc'], options, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 992, in format return escape(self._format(inner, options, qwebcontext)) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 989, in _format return self.pool['ir.qweb'].eval_str(inner, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 213, in eval_str val = self.eval(expr, qwebcontext) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 205, in eval raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 202, in eval return qwebcontext.safe_eval(expr) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/addons/base/ir/ir_qweb.py", line 88, in safe_eval return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True) File "/home/sisalpuser/xoe.services/hltr-2051/server/openerp/tools/safe_eval.py", line 314, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module> QWebException: "'NoneType' object is not callable" while evaluating "context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"
Reference: http://learnopenerp.blogspot.com/2016/09/how-to-convert-datetimedate-to.html