Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
13930 Zobrazení

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

Avatar
Zrušit

Hi,


were you able to solve this?

Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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? 

Avatar
Zrušit

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 Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit