Odoo Help


18 答案

Ermin Trevisan 瑞士

--Ermin Trevisan--
| 8 7 10
Walchwil, 瑞士
--Ermin Trevisan--

Ermin Trevisan 瑞士
2018/6/1 上午2:41

Based on Yenthe's issue on Github https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3898 and thanks to the new builds provided by Ashish Kulkarni, the procedure is straightforward:

sudo wget https://builds.wkhtmltopdf.org/
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

apt-get install -f will install the missing dependencies, which are shown as errors by the dpkg command.

You can find other builds for wkhtmltopdf suitable for Odoo on different Linux systems here: https://builds.wkhtmltopdf.org/

For detailled information please check the Odoo Wiki: https://github.com/odoo/odoo/wiki/Wkhtmltopdf


11 注释
Oocademy, Yenthe Van Ginneken 比利时
2018/6/1 上午3:44

Hey Ermin, thanks for the reply! This does indeed work, I just still have to copy the wkhtmltopdf files so perhaps you can add that here too? I did it like this:

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Then it works great on 18.04 :-)

twanda AG, Ermin Trevisan 瑞士
2018/6/1 上午3:52

I'm not sure, I believe I did that but it was not necessary. I'll try it again and will update my answer if you are right.

twanda AG, Ermin Trevisan 瑞士
2018/6/1 上午4:13

Of course you are right, I was probably dreaming :-)

Fatih Piristine 芬兰
2018/6/1 上午4:54

and if you are still having problems to print, empty pdf files etc, add this to parameters: report.url =

Oocademy, Yenthe Van Ginneken 比利时
2018/6/1 上午5:54

F.P: Yes, that is a commonly known problem in Odoo. Usually happens in containered deployments :-)

Fatih Piristine 芬兰
2018/6/1 上午6:38

yes, but still many of us are not aware of it :)

Farid Ghanchi 印度
2018/11/29 上午6:17

Thanks it works

SafeComs Network Security Consulting Co., Ltd., Philippe Thuaud 泰国
2018/12/28 上午6:37

Thank you, this works like a charm

Nikhil Krishnan 阿拉伯联合酋长国
2019/1/20 上午1:33

Hi Ermin,

I installed the "wkhtmltopdf-.12.1.3". and confiqure the company "Document Template". its work fine for SO,PO,invoices. But when i take print of the product label or product barcode it will show the error like "Wkhtmltopdf failed (error code: -8). Message: b'' .! can you please help me to solve this.!

twanda AG, Ermin Trevisan 瑞士
2019/7/26 下午1:03

I'm late, but please simply read the comment to Ahmed J. ALgharawy's post just below and you'll find the answer to this font problem in my comment.

cmshitech, Murugan Chinnasamy 印度
2019/11/27 上午8:12

Thanks it works

Ahmed Jasim 伊拉克
2018/11/25 上午8:11

Hi I try the following, and it works for 

sudo wget https://builds.wkhtmltopdf.org/
sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt-get install -f
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bi

except for inventory/porduct printing it return the error below

Wkhtmltopdf failed (error code: -8). Message: b''

please advice  



2 注释
twanda AG, Ermin Trevisan 瑞士
2018/12/6 上午3:25

This is not related to this thread. It seems to be a font issue, please check https://github.com/odoo/odoo/issues/27487

Engineering Solutions, Ahmed Jasim 伊拉克
2018/12/23 上午2:54

Thanks Ermin,

Yes what you mentioned is correct, it was a Font missing issue roboto.fon



Frank Schouenberg 荷兰
2018/6/4 上午3:22

Oh, many many many thanks! 

Working like a charm!

2 注释
twanda AG, Ermin Trevisan 瑞士
2018/6/4 上午3:27

You're welcome. But thanking in this forum means upvoting :-)

Frank Schouenberg 荷兰
2018/6/4 上午3:29

Can’t because my karma is too low


Met vriendelijke groet,

Frank Schouenberg

Enzosystems BV
De Binderij 69
1321 EC Almere
The Netherlands
T. +31 36 546 10 46

M. +31 6 407 61 954


Van: Ermin Trevisan <trevi@twanda.com>
Verzonden: maandag 4 juni 2018 09:28
Aan: Frank Schouenberg <frank@enzosystems.com>
Onderwerp: Re: Ubuntu 18.04 LTS: How to install wkhtmltopdf 0.12.1


You're welcome. But thanking in this forum means upvoting :-)

Ermin Trevisan

Sent by Odoo S.A. using Odoo.

Rod Pullmann 美国
2018/12/11 下午4:58

Not so fast, @Ermin.  @JKBasseer's comment is entirely appropriate, and shouldn't be downvoted.

I found this comment page from an external googling of my own problems, and this is the most up-to-date discussion of the 'wkhtmltopdf' version hell that Odoo -- and we by extension -- finds ourselves embroiled in.  Your statement that "Version 0.12.1 is still the version recommended by Odoo" is only true up to Odoo 9.  For Odoo 10 and beyond, version 0.12.5 is the recommended version.  (See https://github.com/odoo/odoo/wiki/Wkhtmltopdf).

I wasn't able to readily find this exact version, so I'm running a 0.12.6 beta, which so far has worked fine on Odoo 11 and 12, Ubuntu 18.04 (Bionic Beaver).

You may want to limit this discussion to 0.12.1, but unless you know something to the contrary, this information is more current and useful than your recommendation.  Much of the world has moved beyond Odoo 9.

JK Baseer 新加坡
2018/12/5 上午9:56

Guys I want to share what has worked me after 2 days of trying this with different solutions. 

Things to note: 

- please check the forum date before consider trying out the solution

- Secondly everyone recommendation of trying of 0.12.1 doesn't matter at all. I have installed the latest version(0.12.4) using the medium blog. 

- Follow that article, remove the old installation and also make sure to use "wkhtmltopdf --version" to test whether your installation has been successful. 

- As am very basic, this helped me that i don't need to be in any specific location in my terminal to install this, i can do from anywhere. Finally the file will be stored under usr/bin/ (after the unzip, after the file moved)


1 备注
twanda AG, Ermin Trevisan 瑞士
2018/12/6 上午3:18

This post is about the installation of wkthmltopdf version 0.12.1 and not about other versions of wkhtmltopdf. Version 0.12.1 is still the version recommended by Odoo (see official documentation) and there is a reason for it. If you don't know about the reasons or if you do not care about, then it is up to you to install the version you like, but please do not hijack this clear and specific thread.

Keep Informed
2 关注者(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now