Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
704 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

report.url.freeze = True

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 18
10462
2
thg 6 18
12105
wkhtmltopdf Đã xử lý
3
thg 6 18
4682
2
thg 9 15
6780
1
thg 5 15
8725