Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
709 Näkymät

Hey,


I'm using Odoo 16 with wkhtmltopdf for PDF generation. 

My problem is:

​-The generated PDFs do not include CSS, showing only plain text (with header and footer)

In my configuration:

  • web.base.url = https://mydomain.com
  • report.url = http://127.0.0.1:8069

The Odoo instance runs in a Docker container behind an Nginx reverse proxy


Any advice to fix this would be appreciated

Avatar
Hylkää
Paras vastaus

Set the value of report.url to  http://localhost:8069, this worked for me, also add another param:

report.url.freeze = True

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
jouluk. 18
10465
2
kesäk. 18
12110
wkhtmltopdf Ratkaistu
3
kesäk. 18
4684
2
syysk. 15
6780
1
toukok. 15
8731