odoo Unable to find Wkhtmltopdf on this system

On an odoo installation, I got the error “Unable to find Wkhtmltopdf on this system”, when generating reports.

odoo Wkhtmltopdf error

This error was because server had old version of wkhtmltopdf installed.

You can download and install latest version of wkhtmltopdf from

https://wkhtmltopdf.org/downloads.html

On Ubuntu 20.04, the error is fixed by

Remove currently installed wkhtmltox

apt remove --purge wkhtmltox

Install newer version

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

Create a symlink

rm -f /usr/bin/wkhtmltopdf
ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Restart odoo

systemctl restart odoo

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *