Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
12649 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
wkhtmltopdf Rezolvat
3
iun. 18
5007
2
sept. 15
7209
3
mar. 19
7521
1
oct. 15
6819
1
iun. 25
1148