Community mailing list archives

community@mail.odoo.com

Re: Error while printing webkit reports

by
devnanibharatr
- 02/19/2015 05:58:58
Stefan thanks for your support, its sorted and we are able to print the report.
And stefan one more thing to confirm, is there any module which has option to provide P&L and Balance Sheet Report in Excel ? 

Hope to hear from you soon.

Regards,
Bharat

On Thu, Feb 19, 2015 at 1:37 PM, Stefan <stefan@therp.nl> wrote:
On 18-02-15 09:47, Nicolas Bessi wrote:
<blockquote cite="mid:CAJ8fHOW=eK6ztV9=n-S8yZi+HJ0h4r-QGq_38UJ8wUriH_1c5w@mail.gmail.com" type="cite">
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')

It could also be the infamous API change that this commit corrects: https://github.com/OCA/account-financial-reporting/commit/a9a2f860fdde0dd47756bc73898a5b324a617a2c

Bharat, try updating your account-financial-reporting from GitHub.

Cheers,
Stefan.


<blockquote cite="mid:CAJ8fHOW=eK6ztV9=n-S8yZi+HJ0h4r-QGq_38UJ8wUriH_1c5w@mail.gmail.com" type="cite">

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



-- 
Therp - Maatwerk in open ontwikkeling

Stefan Rijnhart - Ontwerp en implementatie

mail: stefan@therp.nl
tel: +31 (0) 614478606
web: http://therp.nl

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