Skip to Content
Menu
This question has been flagged
1 Reply
2277 Views

Hello,

- Im working with Odoo 16 enterprise (with an Odoo 11 migrated databse) and I'm having a problem printing the invoices in pdf.

- Is installed the wkhtmltopdf 0.12.5.1 like the Odoo manual says (downgraded from 0.12.6 to try solve the problem).

- The template configuration for the invoice is done (with developer mode) in settings/ document design/ configure design of document (res.config.settings).

- I select the template, and I treat to simplify the maximum the design. For me, with the details of the company it would be enough.


- So, when I print one invoice, the invoice desing is ok; but if I print several invoices in the same pdf document (I select several invoices and I clic in print) it seems like the template dissapear and in the invoice do not appears the header with our info. This is like a totally clear invoice. So, I try other way.

- I test including logo and writting in the jpg logo our info. It seem is working with one and several invoices, but when I try to print 80 invoices, I receive the next error "wkhtmltopdf failed (error code: -9). Message:"

- I understand that the wkhtmltopdf failed trying to include the 80 "logos". I dont know if it need memory or time.


- So, on the one hand I can print 80 invoices in a pdf WITHOUT our data; and on the other hand we have a code error that dont let print 80 invoices. Both are useless.

- For me is ok any solution. Or fix the problem with wkhtmltopdf to print 80 invoices in the same pdf with logo; or introduce our company data by text in the invoices.


Do you know how we can solve that problem?


Best regards and thanks :-)

Avatar
Discard
Best Answer

Hi,

You can try as follows and see, activate the developer mode in the database and navigate to System Parameters menu under Settings -> Technical and create a new record here with key as:  report.print_delay and set its value as 2000(consider increasing this value if not succeeded).

* Developer mode

* Create new system parameter with key as report.print_delay


Make sure you have the latest source code of Odoo 16 to have this functionality.

Thanks

Avatar
Discard