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

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

頭像
捨棄