Community mailing list archives

Re: Error printing multiple invoices at once

Mustafa Al Saeedi
- 07/18/2015 02:24:25
Many thanks for both of you Pradeep Singh & Mohamed M. Hagag 
I downgrade my wkhtmltopdf to and it's work both for showing footer and multi report at once.

@Mohamed M. Hagag

I used you report_rtl and it's looks fine so far ... thank you very very much and Eid Mubarak

Best regards

On Wed, Jul 15, 2015 at 5:09 PM, Mohamed M. Hagag <> wrote:

try without the odoo-rtl module and try to use wkhtml v. 0.12.0 or 0.12.2

On 07/15/2015 04:00 PM, Pradeep Singh wrote:
<blockquote cite="" type="cite">
  Are you using any custom module? It may happen if you are passing a report file object instead of file name.
Cud you write your problem in detail?

On Tue, Jul 14, 2015 at 9:37 PM, Mustafa J. Kadhem Al-Azaam <> wrote:

I got this odoo server error whenever try printing multiple invoices at once.

Traceback (most recent call last):
File "/opt/odoo/addons/report/controllers/", line 121, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/opt/odoo/openerp/", line 403, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/report/controllers/", line 65, in report_routes
pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context)
File "/opt/odoo/openerp/", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/report/models/", line 274, in get_pdf
paperformat, specific_paperformat_args, save_in_attachment
File "/opt/odoo/openerp/", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/report_rtl/models/", line 196, in _run_wkhtmltopdf
content = self._merge_pdf(pdfdocuments)
File "/opt/odoo/addons/report/models/", line 563, in _merge_pdf
pdfreport = file(document, 'rb')
TypeError: coercing to Unicode: need string or buffer, instance found

I've install both pypdf & pypdf2 by pip command tool and still got same error

my environment is: Server : Ubuntu 14.04.3 (32bit) & wkhtmltopdf 0.12.1 (with patched qt)

Any suggestion to solve this ??

My Regards to All


Post to:

With Regards!
Pradeep Singh

Post to:

Post to: