Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1173 มุมมอง

I have a custom PDF report for a custom module, but when it downloads it's 0 bytes.


It wasn't like this before and it's only for this one specific report. The rest works good and nothing in the codes were changed! And everything in the logs and JS console are fine, absolutely 0 errors!


What are any possible reason for this?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Jervey,

I Hope you are doing well,

Odoo uses wkhtmltopdf to generate PDFs. If the version of wkhtmltopdf on your server is not compatible, it may generate 0-byte PDFs.
Check the version (wkhtmltopdf --version). For Odoo 17, a version like 0.12.5 or higher is recommended.

or

If no specific issue can be identified:
1)Restart the Odoo service and clear the cache
2) Reinstall the module to ensure all XML templates and actions are loaded correctly.

I hope this msg finds you well.

Thanks & Regards
Kunjan Patel

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 24
1139
4
มิ.ย. 24
1639
1
เม.ย. 24
1278
Wrong PDF Format แก้ไขแล้ว
2
มี.ค. 24
2104
0
พ.ย. 22
2453