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.

1

Webkit error Odoo v7 - account_financial_report_webkit

By
mmycool
on 7/23/14, 6:27 AM 2,659 views

Anyone experienced this error? Any solution to this?

TypeError: translate_call() takes exactly 2 arguments (3 given)

2014-07-23 10:16:55,537 4676 ERROR mikes-demo 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 783, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 815, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 841, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0xaf14f8acL", 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 783, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 815, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 841, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0xaf14f8acL", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')
2014-07-23 10:16:55,595 4676 ERROR mikes-demo 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 783, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 815, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 841, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0xaf14f8acL", 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 783, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 815, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 841, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0xaf14f8acL", line 22, in render_body\n    <%\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n')

 

From the browser, the error is:

Uncaught SyntaxError: Unexpected end of input
http://localhost:8092/?db=mike-demo&ts=1406110570942#page=0&limit=80&view_type=list&model=account.invoice&menu_id=225&action=246:0

I am also facing same error... I am not able to GL report at all. Not able to find any work-around in the google... :( highly disappointed...

User198605
on 8/30/14, 5:07 AM

i get the same thing as well. i will post an update if i get to solve the problem.

Rooms For (Hong Kong) Limited, Yoshi Tashiro
on 9/7/14, 10:52 PM

Is there a fix for this problem? I have this problem on one machine. On an other it works. There is a difference on the machine in the mako versions. With mako 0.5.0 it works. With mako 0.7.0 it does not work. Is there someone who can tell me how I remove mako 0.7.0 and replace it by mako 0.5.0. I don't know if this is a solution but I wanna give it a try.

FKS bvba, Fks bvba
on 9/18/14, 10:24 AM

Hi Friends, I am also facing same error, if anybody fix then please provide me how to fix it. waiting for your valuable guidance.

babu
on 12/4/14, 8:36 AM
0
mmycool
On 7/23/14, 7:39 AM

Anyone willing to help?

0
Eric Mugo
On 10/13/14, 9:59 AM

I think the solution is to perform an update of openerp. This will depend on your linux distribution and how you installed openerp.

It appears that your account_financial_report_webkit module is newer than the report_webkit module bundled with openerp.

The change in the report_webkit module was introduced in June 2014:


https://github.com/odoo/odoo/commit/6fdb783a378104700138dd0abcc571856fdc9541#diff-6db4ae79ff562ca9bb4a4e974b7db788

0
ahmad
On 9/4/14, 5:08 AM

might be problems with <% and %>

you can try using the default report if it has, and convert it into webkit template. 

"you can try using the default report if it has, and convert it into webkit template"... Can you please guide me How can I do that. I am very new to OE reporting concept. :(

User198605
on 9/4/14, 6:42 AM

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

7 follower(s)

Stats

Asked: 7/23/14, 6:27 AM
Seen: 2659 times
Last updated: 3/16/15, 8:10 AM