From 4086e8c753cf87b18d988c332bca57040ee75272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20M=C3=A9ndez=20Quintero?= <38361760+marcos-mendez@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:43:27 -0300 Subject: [PATCH] Downgrade wkhtmltopdf The latest wkhtml version provided by Debian is incompatible with odoo and probably won't be maintained anymore, the reason is that Odoo os changing the ORM for other ways to manipulated PDFs. Te monkeypatch i found is to use the specific use of this: https://github.com/odoo/odoo/wiki/Wkhtmltopdf specially for Odoo16.0 https://github.com/wkhtmltopdf/packaging/releases/tag/0.12.6.1-3 The problem here is that it is CPU oriented. The main usage here for me has been AMD64, so probably you should also check this for your self --- plan/main | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plan/main b/plan/main index db0e703..2cb8ddf 100644 --- a/plan/main +++ b/plan/main @@ -3,11 +3,15 @@ odoo-16 xfonts-75dpi -wkhtmltopdf +wget python3-psycogreen -adduser -postgresql-client +adduser +postgresql-client python3 python3-passlib /* Needed to set admin password */ + +/* Installing specific version of wkhtmltox for Odoo compatibility */ +wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb +dpkg -i wkhtmltox_0.12.6.1-3.bookworm_amd64.deb || apt-get -f install