Skip to Content
Menu
This question has been flagged
2 Replies
5010 Views

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 806, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/var/Addons/POS14/prt_report_attachment_preview/controllers/cetmix_controllers.py", line 85, in report_routes
pdf = report.with_context(context)._render_qweb_pdf(docids, data=data)[0]
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 815, in _render_qweb_pdf
pdf_content = self._run_wkhtmltopdf(
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 475, in _run_wkhtmltopdf
raise UserError(message % (str(process.returncode), err[-1000:]))
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 806, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/var/Addons/POS14/prt_report_attachment_preview/controllers/cetmix_controllers.py", line 85, in report_routes
pdf = report.with_context(context)._render_qweb_pdf(docids, data=data)[0]
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 815, in _render_qweb_pdf
pdf_content = self._run_wkhtmltopdf(
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 475, in _run_wkhtmltopdf
raise UserError(message % (str(process.returncode), err[-1000:]))
odoo.exceptions.UserError: Wkhtmltopdf failed (error code: -9). Message: b''

Avatar
Discard
Best Answer

Use this Odoo app - Manage Bulk pdf Export

It will give you solution.

Thanks!

Avatar
Discard
Best Answer

Hi, 

This may due to the wkhtmltopdf package is not installed on your system, You can try the below command to install the package, hope this will solve your problem.

sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f -v

Regards

Avatar
Discard
Related Posts Replies Views Activity
1
May 24
2156
1
Apr 24
25477
1
Nov 22
2071
2
Jul 22
2650
2
Jul 22
2544