تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
14024 أدوات العرض

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

الصورة الرمزية
إهمال