Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
991 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

report.url.freeze = True

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
gru 18
10729
2
cze 18
12418
wkhtmltopdf Rozwiązane
3
cze 18
4863
2
wrz 15
7045
1
maj 15
8967