Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
16426 Lượt xem

hello everybody,

i'm using odoo 8 for the first time i try to print a report and i get this error sale -> quotations -> print quotation

Report (PDF)

Wkhtmltopdf failed (error code: -11). Message:

Ảnh đại diện
Huỷ bỏ

Check this: https://www.odoo.com/forum/ayuda-1/question/wkhtmltopdf-failed-error-code-11-75795#answer_98751

Câu trả lời hay nhất

You need to install wkhtmltox-0.12.1

wkhtmltox-0.12.2.1 formating has issue and we should stick to the wkhtmltox-0.12.1until a new release is out.

I suggest upon installing try to run your server on CLI

either by

# ./openerp-server --config=<your config file>

or

# ./odoo.py --config=<your config file>

And you should see a similar log entry below.

2015-07-13 17:37:36,001 129586 INFO &lt;your db instance> openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf 

This indicates that your wkhtmltopdf package is installed properly and could be found.

Ảnh đại diện
Huỷ bỏ
Tác giả

i tried wkhtmltox-0.12.1 but its always ths same error

Tác giả Câu trả lời hay nhất

There is no error message in server log only the message that i write before, & i'm using wkhtmltox-0.12.2.1 version

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Please paste the complete error message from server log, the version of Wkhtmltopdf you are using and in what platform (linux version or windows version).

Wkhtmltopdf must be at least version 0.12.0 for Odoo. To see what version you have do a 

wkhtmltopdf -V

from a console.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

if you using report-rtl then edit addons/report_rtl/models/report.py file in line 90 to be something like this 

command_args = ['--load-error-handling','ignore']

save & restart odoo

regards,

SaFi

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
1999
1
thg 2 24
2876
1
thg 2 18
11917
16
thg 2 17
47293
0
thg 3 25
1662