İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
12614 Görünümler

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.

Avatar
Vazgeç
Üretici En İyi Yanı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.

Avatar
Vazgeç
En İyi Yanı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.


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
wkhtmltopdf Çözüldü
3
Haz 18
4990
2
Eyl 15
7190
3
Mar 19
7513
1
Eki 15
6810
1
Haz 25
1127