Community mailing list archives

community@mail.odoo.com

Re: Error while printing webkit reports

by
devnanibharatr
- 02/18/2015 07:59:37
Hello Nicolas,

Thanks for the reply, Particular report works on local system but doesn't work in production server. Any help is appreciated.

Regards,
Bharat

On Wed, Feb 18, 2015 at 12:48 PM, Nicolas Bessi <nicolas.bessi@camptocamp.com> wrote:
Hello, 

There is a problem with translate_call that means one term that must be translated is not call correctly in template.
The usage is _('My term')

Regards

Nicolas

2015-02-18 7:42 GMT+01:00 Bharat Devnani <devnanibharatr@gmail.com>:
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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Nicolas Bessi
Senior ERP consultant
Business Solution technical manager

Camptocamp SA
PSE A
CH-1015 Lausanne

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe