跳至内容
菜单
此问题已终结
3 回复
7209 查看

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.

形象
丢弃
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.

编写者 最佳答案

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?

形象
丢弃
最佳答案

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)


形象
丢弃
最佳答案

The recommended version of wkhtmltopdf for Odoo 11 is 0.12.5

形象
丢弃

Thanks Ermin, updated

相关帖文 回复 查看 活动
3
4月 19
6391
2
6月 18
12166
wkhtmltopdf 已解决
3
6月 18
4721
2
9月 15
6805
1
10月 15
6550