Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
13992 Представления

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

Аватар
Отменить

Hi,


were you able to solve this?

Лучший ответ

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.

Аватар
Отменить
Лучший ответ

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? 

Аватар
Отменить

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

Автор Лучший ответ

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.

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить