Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1012 Представления

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
10743
2
июн. 18
12441
wkhtmltopdf Решено
3
июн. 18
4867
2
сент. 15
7054
1
мая 15
8984