콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1254 화면

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
11053
2
6월 18
12786
wkhtmltopdf 해결 완료
3
6월 18
5102
2
9월 15
7301
1
5월 15
9186