Odoo Help

2

2
18 Answers
11
Avatar

Ermin Trevisan Switzerland

--Ermin Trevisan--
16649
| 8 7 10
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan Switzerland
6/1/18, 2:41 AM

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/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
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 0.12.1.3 suitable for Odoo on different Linux systems here: https://builds.wkhtmltopdf.org/0.12.1.3/

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

Enjoy.

11 Comments
Oocademy, Yenthe Van Ginneken Belgium
6/1/18, 3:44 AM

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 Switzerland
6/1/18, 3:52 AM

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 Switzerland
6/1/18, 4:13 AM

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

Fatih Piristine Finland
6/1/18, 4:54 AM

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

Oocademy, Yenthe Van Ginneken Belgium
6/1/18, 5:54 AM

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

Fatih Piristine Finland
6/1/18, 6:38 AM

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

Farid Ghanchi India
11/29/18, 6:17 AM

Thanks it works

SafeComs Network Security Consulting Co., Ltd., Philippe Thuaud Thailand
12/28/18, 6:37 AM

Thank you, this works like a charm

Nikhil Krishnan United Arab Emirates
1/20/19, 1:33 AM

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 Switzerland
7/26/19, 1:03 PM

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 India
11/27/19, 8:12 AM

Thanks it works

1
Ahmed Jasim Iraq
11/25/18, 8:11 AM

Hi I try the following, and it works for 

sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
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  

Regards

Ahmed




2 Comments
twanda AG, Ermin Trevisan Switzerland
12/6/18, 3:25 AM

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 Iraq
12/23/18, 2:54 AM

Thanks Ermin,

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

Br

Ahmed

1
Frank Schouenberg Netherlands
6/4/18, 3:22 AM

Oh, many many many thanks! 

Working like a charm!

2 Comments
twanda AG, Ermin Trevisan Switzerland
6/4/18, 3:27 AM

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

Frank Schouenberg Netherlands
6/4/18, 3:29 AM

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
www.enzosystems.com
frank@enzosystems.com

 

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.

0
Rod Pullmann United States
12/11/18, 4:58 PM

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.

-1
JK Baseer Singapore
12/5/18, 9:56 AM

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)

https://medium.com/@aadimator/odoo-wkhtmltopdf-installation-df0f47104c60

1 Comment
twanda AG, Ermin Trevisan Switzerland
12/6/18, 3:18 AM

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.

Ask a Question
Writer
Keep Informed
2 follower(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.

Register
Odoo Training Center

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

Test it now