Community mailing list archives

community@mail.odoo.com

Error while printing webkit reports

by
devnanibharatr
- 02/18/2015 01:40:31
Hello Experts,

I am trying to print webkit reports, but i am getting following message:

Exception: (u'Webkit render', u'\n\nTraceback (most recent call last):\n  File "/opt/openerp/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 228, in create_single_pdf\n    **parser_instance.localcontext)\n  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 443, in render\n    return runtime._render(self, self.callable_, args, data)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 803, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 835, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 860, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f24b28a8f10", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')

Traceback (most recent call last):
  File "/opt/openerp/server/openerp/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/opt/openerp/addons/report_webkit/webkit_report.py", line 340, in create
    html = "<!DOCTYPE html>\n" + html
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 511, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/opt/openerp/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 233, in create_single_pdf
    raise except_osv(_('Webkit render'), msg)
except_osv: (u'Webkit render', u'\n\nTraceback (most recent call last):\n  File "/opt/openerp/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 228, in create_single_pdf\n    **parser_instance.localcontext)\n  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 443, in render\n    return runtime._render(self, self.callable_, args, data)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 803, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 835, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 860, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f24b28a8f10", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')
2015-02-18 05:51:47,642 4219 ERROR new_test openerp.netsvc: Webkit render

If any one has the solution, kindly reply.

Thanks & Regards,
Bharat