コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
7237 ビュー

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
6434
2
6月 18
12210
wkhtmltopdf 解決済
3
6月 18
4734
2
9月 15
6832
1
10月 15
6584