コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
725 ビュー

Hii members of the Odoo community,


I am using Odoo 19 and Window 11

But an error occurred when I want to issue an invoice or send an order to a customer.


This is the error: Invalid operation. Wkhtmltopdf could not be found on this system. Unable to create PDF.


What I have tried:

(1) Add 2 lines to odoo.conf:

wkhtmltopdf_path = "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"

bin_path = C:/Program Files/wkhtmltopdf/bin


(2) Add C:\Program Files\wkhtmltopdf\bin to Environment variables


But both methods did not work

アバター
破棄
著作者 最善の回答

Thanks everyone very much

Despite my best efforts to fix the error from everyone's solution, I still can't fix it :<<


I have fixed all 3 ways below and it still doesn't work:

(1) Add both lines to odoo.conf:

wkhtmltopdf_path = "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"

bin_path = C:/Program Files/wkhtmltopdf/bin

(2) Delete line: wkhtmltopdf_path = "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe"

(3) Delete line: bin_path = C:/Program Files/wkhtmltopdf/bin


Even when I downloaded from the latest version to version 0.12.5 of wkhtmltopdf, I still can't fix it :<<<

Not only me but my friends also have the same error with Odoo 19. But with Odoo 18, they all works fine and doesn't have this error.

アバター
破棄
最善の回答

Hi,

You can fix it by installing Wkhtmltopdf in your system .To  install Wkhtmltopdf by running the following command in your terminal:


    sudo wget

    https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb 

    sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb


Hope it helps.

アバター
破棄
最善の回答

1- Install the correct version for wkhtmltopdf for windows 
https://wkhtmltopdf.org/downloads.html

2- add only this in odoo.conf file "this is the path for bin folder in wkhtmltopdf folder  that created after installation "
​bin_path = C:\Program Files\wkhtmltopdf\bin


アバター
破棄
最善の回答

Hello Nini,
Please remove  wkhtmltopdf_path and try below line in odoo.conf.

bin_path = C:\Program Files\wkhtmltopdf\bin
アバター
破棄