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

I am running Odoo 11 Community on Debian Stretch. I have installed wkhtmltox from https://builds.wkhtmltopdf.org/0.12.1.3/ using the stretch_amd64 .deb. Nginx is proxying to 127.0.0.1:8069.

wkhtmltopdf -V yields 'wkhtmltopdf 0.12.1.3 (with patched qt)'.

I have added the system parameter 'report.url' and pointed it to 127.0.0.1:8069.

When I attempt to print invoice or RFQ documents, I get a PDF without template formatting and 'My Company' in place of my company name. I have tried switching templates. I have restarted Odoo a few times and even rebooted the server instance. I have not seen any errors from wkhtmltopdf in server logs.

Where do I go from here? TIA.

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

The solution was to be more verbose in the parameter setting for report.url. For those who are new (like I am): the parameter settings can be reached by first enabling 'Developer mode' on the right side of the settings dashboard under the "Share the Love" box. Once that's done, you have access to additional menus in the settings sidebar. In parameters -> system parameters, create a new key called 'report.url' and set the value to 'http://127.0.0.1:8069/'. The formatting of the value is important; don't leave out http:// or the ending slash. This is what was causing my reports to fail.

The 'My Company' issue is a separate one and can be resolved in inventory -> warehouse management -> warehouses.

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

Check if you can resolve this with the additional system parameter report.url:

https://github.com/odoo/odoo/issues/2934

Also, the recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section.  I know Odoo is VERY particular about the version, so I would try with the EXACT version on the download page they recommend.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
wkhtmltopdf Đã xử lý
3
thg 6 18
4993
2
thg 9 15
7192
3
thg 3 19
7516
1
thg 10 15
6810
1
thg 6 25
1137