Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2365 Weergaven

Hi everyone,


I’ve been banging my head against a wall trying to work this out. I’m running a docker version of Odoo 16. It all works fine except for the printing/pdf exporting of invoices etc which result in a plain html doc.


Im trying to install wkhtmltopdf to resolve this issue, but I cant seem to find the correct procedure to do so on my system. I’m sure it is an easy fix, but I can’t work it out. Can anyone one help?


Thanks in advance

Avatar
Annuleer
Beste antwoord

if you are using Odoo in docker, then its best to use the wktmltopdf in docker as a service 

  wkhtmltopdf:
    image: odoo:16.0-wkhtmltopdf

otherwise, you will have to access the binary from Docker odoo, which may not be efficient.  The wkhtmltopdf binary should be accessed via this line in odoo.conf

[options]
; Set the path to wkhtmltopdf binary
; (Ensure it matches the path used in your Docker image)
wkhtmltopdf_path = /usr/local/bin/wkhtmltopdf


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
3720
1
mei 15
9293
3
feb. 24
4739
0
feb. 23
2409
1
sep. 19
7717