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.
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
1 |
apt remove --purge wkhtmltox |
Install newer version
1 2 |
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
1 2 |
rm -f /usr/bin/wkhtmltopdf ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf |
Restart odoo
1 |
systemctl restart odoo |