Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1098 Tampilan

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
Buang
Jawaban Terbai

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

report.url.freeze = True

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Des 18
10865
2
Jun 18
12586
wkhtmltopdf Diselesaikan
3
Jun 18
4958
2
Sep 15
7168
1
Mei 15
9079