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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 24
1603
PDF reports 已解決
5
7月 25
2254
1
4月 24
1717
2
3月 24
2775
0
11月 22
2992