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

OpenERP Webkit Report: OpenERP Client Error - Uncaught SyntaxError: Unexpected end of input

By
Jeremy
on 2/20/15, 7:01 AM 1,458 views

Hi All,

I just installed on report_webkit, account_financial_report_webkit and also the corresponding wkhtmltopdf library on a duplicate of production database for testing. The OpenERP server is version 7 installed locally on Ubuntu Server 14.04 LTS. However, everytime I tried to print a report from any of the provided reports, I got the following error:

Uncaught SyntaxError: Unexpected end of input

http://192.168.1.148:8069/?db=destech_db_reporttest&ts=1424430619154#page=0&limit=80&view_type=list&model=account.invoice&menu_id=220&action=241:0

Here's a section from my log file.

2015-02-20 11:10:57,418 936 ERROR destech_db_reporttest openerp.service.web_services: Exception: (u'Webkit render', u'\n\nTraceback (most recent call last):\n  File "/opt/openerp/v7/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 807, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f62f97eadd0", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/opt/openerp/v7/addons/report_webkit/webkit_report.py", line 340, in create
    result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
  File "/opt/openerp/v7/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/v7/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/v7/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 807, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f62f97eadd0", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')

2015-02-20 11:10:57,517 936 ERROR destech_db_reporttest openerp.netsvc: Webkit render


Traceback (most recent call last):
  File "/opt/openerp/v7/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 228, in create_single_pdf
    **parser_instance.localcontext)
  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 807, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x7f62f97eadd0", line 22, in render_body
    <%
TypeError: translate_call() takes exactly 2 arguments (3 given)

Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'Webkit render', u'\n\nTraceback (most recent call last):\n  File "/opt/openerp/v7/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 807, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f62f97eadd0", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')

The error seems to be repetition of the argument error. I would appreciate any form of help!

Thanks in advance!

Jeremy

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

2 follower(s)

Stats

Asked: 2/20/15, 7:01 AM
Seen: 1458 times
Last updated: 3/16/15, 8:10 AM