跳至內容
選單
此問題已被標幟
1 回覆
1137 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 18
10896
2
6月 18
12638
wkhtmltopdf 已解決
3
6月 18
4994
2
9月 15
7194
1
5月 15
9094