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''
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
5015
查看
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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
5月 24
|
2172 | ||
|
1
4月 24
|
25523 | ||
|
1
11月 22
|
2075 | ||
|
2
7月 22
|
2657 | ||
|
2
7月 22
|
2553 |