콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
7887 화면

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
7005
2
6월 18
13129
wkhtmltopdf 해결 완료
3
6월 18
5396
2
9월 15
7592
1
10월 15
7153