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

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.

頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
最佳答案

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.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
wkhtmltopdf 已解決
3
6月 18
4991
2
9月 15
7191
3
3月 19
7514
1
10月 15
6810
1
6月 25
1132