Skip to Content
Menu
This question has been flagged
3 Replies
7244 Zobrazenia

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
Zrušiť
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.

Autor 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
Zrušiť
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
Zrušiť
Best Answer

The recommended version of wkhtmltopdf for Odoo 11 is 0.12.5

Avatar
Zrušiť

Thanks Ermin, updated

Related Posts Replies Zobrazenia Aktivita
3
apr 19
6435
2
jún 18
12228
3
jún 18
4739
2
sep 15
6836
1
okt 15
6588