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

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''

頭像
捨棄
最佳答案

Use this Odoo app - Manage Bulk pdf Export

It will give you solution.

Thanks!

頭像
捨棄
最佳答案

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
3120
1
4月 24
26711
1
11月 22
2585
2
7月 22
3285
2
7月 22
3101