Skip to Content
Menu
This question has been flagged
3 Replies
6222 Views

Hello,

I'm on a ubunut 16.04 server with Odoo11

I installed wkhtmltopdf v. 0.12.4 qt this way:


wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ls -l /usr/bin/wkhtml*
sudo chown root:root /usr/bin/wkhtmltopdf
sudo chown root:root /usr/bin/wkhtmltoimage


I can generate a page directly from the command line.

On the other hand in Odoo there is an Odoo error message empty of any information.


I tried to install the latest version 0.12.5 but without any more success.


What is the right way to install wkhtmltopdf

Thank you in advance.

Avatar
Discard
I have try to install wkhtmltopdf version 0.12.5 with the same result.

2019-03-12.png
The error message




Michel Barras
Route des Barzettes 13
3963 Crans-Montana

078 603 23 21


Green_footers_8



Le mar. 12 mars 2019 à 21:51, Ermin Trevisan <trevi@twanda.com> a écrit :

A new answer on Erro with wkhtmltopdf and Odoo11 has been posted. Click here to access the post :

See post

Sent by Odoo S.A. using Odoo.

Author Best Answer

Thank you for your quick answer.


I have implemented your recommendations but the problem remains the same.


My version of Odoo is at the following Odoo 11.0-20190311 (Community Edition)

wkhtmltopdf -V

wkhtmltopdf 0.12.1 (with patched qt)


What is the current version of wkhtmltopdf that is recommended for Odoo11

Do you have any ideas?

Avatar
Discard
Best Answer

Download the deb file for the wkhtmltopdf library

  1. sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Download the Libpng12 library

  1. wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb

Install the Libpng12 library

  1. sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb

Install now the wkhtmltopdf deb file

  1. sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

Copy the binary files to the bin locations:

  1. sudo cp /usr/local/bin/wkhtmltopdf /usr/bin

  2. sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Restart Odoo Server, (You may need to refresh Odoo on your Browser to start downloading PDF reports)


Avatar
Discard
Best Answer

The recommended version of wkhtmltopdf for Odoo 11 is 0.12.5

Avatar
Discard

Thanks Ermin, updated

Related Posts Replies Views Activity
3
Apr 19
5545
2
Jun 18
10876
3
Jun 18
3721
2
Sep 15
5894
1
Oct 15
5759