跳至內容
選單
此問題已被標幟
5 回覆
2970 瀏覽次數

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. 




頭像
捨棄
最佳答案

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.



頭像
捨棄
最佳答案

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

頭像
捨棄
作者 最佳答案

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 

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

Hi 

Check these reference 

Report Layout Problem

Odoo Report layout Issue :- Solve

Regards

頭像
捨棄