Ubuntu 22.04 Odoo17 wkhtml issue
The current Odoo17 script doesnt work 100% regarding whtmltopdf It generates a pdf but without header or footer.
Any ideas how to fix this?
I think I fixed it by uninstalling wkhtml first. Then in downloaded and installed this version from the official github page wkhtmltox_0.12.6.1-2.jammy_amd64.deb
hmm .... may the script's wkhtml need to be updated too
Install wget utility package
sudo apt update sudo apt install wget
Install wkhtmltopdf on Ubuntu: wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt-get install -f you can follow above steps
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
this will fix, its downgraded version with patched qt. restart odoo services after upgrade
download and install manually:
select version: odoo 17: https://github.com/wkhtmltopdf/packaging/releases/tag/0.12.6.1-3
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
apt install /wkhtmltox_0.12.6.1-3.jammy_amd64.deb
enjoy it.
thanks alot Mr. ShramdeepKc. thats worked for me