Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
2971 Vizualizări

Hi Guys, 


When previewing the document layout choosen, it looks like perfect with the graphs and logo as well in the preview of the invoices but when downloaded or printed I got something that has nothing todo with it with no formating and no graphs at all

any ideias how to solve this?  I'm using a odoo v17 onprem. 




Imagine profil
Abandonează
Cel mai bun răspuns

Try to download the latest package for your linux distro from 

https://github.com/wkhtmltopdf/packaging/releases/tag/0.12.6.1-3
I had to install wkhtmltox_0.12.6.1-3.jammy_amd64.deb which had some missing packages like xfonts-75dpi needed to be installed.



Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Mostly the report layout issue can be solved by installing the package wkhtmltopdftry to uninstall and re-install the package. You can follow the below command.

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb


sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt install -f


And restart your odoo service.

Please refer to a similar forum below:https://www.odoo.com/sk_SK/forum/pomoc-1/header-and-footer-not-showing-in-pdf-205290

Hope it helps

Imagine profil
Abandonează
Autor Cel mai bun răspuns

almost fixed I ended up installing the v16 and the wkhtmltopdf with patch qt, it almost worked but now the bottom lines of the invoice are gone in the A4, I tried almost all the margins possible, disabling the smart fit etc, I always got or the header or the bottom lost . 

The funny thing is that I had this working in the past 

Imagine profil
Abandonează
Cel mai bun răspuns

I have the same issue using the online version.  Layout in example is ok but in print preview and print output it is messed up.  I am using the standard template "boxed" for my invoice

Imagine profil
Abandonează
Cel mai bun răspuns

Hi 

Check these reference 

Report Layout Problem

Odoo Report layout Issue :- Solve

Regards

Imagine profil
Abandonează