Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1119 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

report.url.freeze = True

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ธ.ค. 18
10880
2
มิ.ย. 18
12611
wkhtmltopdf แก้ไขแล้ว
3
มิ.ย. 18
4989
2
ก.ย. 15
7186
1
พ.ค. 15
9085