Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
14042 Widoki

Is there any special requirements for wkhtmltopdf for Odoo 16

i installed it many times, an, and the printing is not correct.

i tried wkhtmltopdf 0.12.6 and wkhtmltopdf 0.12.5

Awatar
Odrzuć

Hi,


were you able to solve this?

Najlepsza odpowiedź

Hi, 

Yes, wkhtmltopdf for odoo16 must be greater than the version 0.12.2.

Please try to uninstall all the wkhtmltopdf version and install fresh wkhtmltopdf 0.12.5 version.
Hope it will help you.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi, 
actually I faces similar issue, but in my case, the view is not correct while opened using Chrome / Edge.
it is normal if open using Firefox. 

does anyone have clue with this case? 

Awatar
Odrzuć

Hi,
do you have any sample report from any odoo apps ?
Please try after updating your browser.

Hi Malay Khamar, ya sure.

this one is base for quotaion, this is printed from firefox
https://ibb.co/Qdx4Dv2

and this one is printed from chrome
https://ibb.co/hghHBMk

this is sample custom I build, the left image is forefox, and the right is using Edge
https://ibb.co/2Y36yVg

chrome version : Version 107.0.5304.87 (Official Build) (64-bit)
firefox version: 106.0.2 (64-bit)

what I do until now,
1. reset all cache
2. reinstall the browser for chrome and edge
3. reinstall wkhtmltopdf version 0.12.6

Autor Najlepsza odpowiedź

I found the standard installation was not the problem, but the problem was the Uncomplicated Firewall (ufw). when I disable ufw then it works 100% and if I enable, then it enables then the invoice printing is not working.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


Try to check your wkhtmltopdf package's path using :

pip show wkhtmltopdf

Check if the path matches other packages' paths that are used as requirements

Awatar
Odrzuć