تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1541 أدوات العرض

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
ديسمبر 18
11357
2
يونيو 18
13055
wkhtmltopdf تم الحل
3
يونيو 18
5352
2
سبتمبر 15
7543
1
مايو 15
9530