Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

I have installed Wkhtmltopdf in my system and added it in the system variable as well as added its path in odoo.conf 

bin_path = C:\Program Files\wkhtmltopdf\bin

but still getting this error in console
odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
and this one at the front

Traceback (most recent call last):
  File "d:\odoo17\addons\account_reports\controllers\main.py", line 31, in get_report
    generated_file_data = report.dispatch_report_action(options, file_generator)
  File "d:\odoo17\addons\account_reports\models\account_report.py", line 2043, in dispatch_report_action
    return getattr(self, action)(*args)
  File "d:\odoo17\addons\account_reports\models\account_report.py", line 4849, in export_to_pdf
    io.BytesIO(action_report._run_wkhtmltopdf(
  File "D:\odoo17\odoo\addons\base\models\ir_actions_report.py", line 487, in _run_wkhtmltopdf
    process = subprocess.Popen(wkhtmltopdf, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Program Files\Python310\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\Python310\lib\subprocess.py", line 1440, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied

The above server error caused the following client error:
RPC_ERROR://localhost:8069/web/assets/bc19c53/web.assets_web.min.js:2871:163)
    at decoder.onload (http://localhost:8069/web/assets/bc19c53/web.assets_web.min.js:2857:7)
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Sep 21
2267
1
Mei 18
3437
2
Jan 17
6606
1
Mei 15
9072
1
Mar 15
13092