Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1925 Tampilan

Hi,

After initially creating and posting the invoice with a single line item, I subsequently reset the invoice status to draft and added two additional lines; however, despite these updates, the PDF preview of the invoice fails to display the newly added line items, indicating a potential issue with the invoice rendering process


Please check below screenshot for your reference.



Avatar
Buang
Jawaban Terbai

Hello,

I would like to inform you that when an invoice is initially printed, it gets saved in the attachments and subsequently loads in the preview. However, any modifications made to the invoice won't reflect in the preview of previously generated invoices.

So to change the attached invoice kindly follow the below steps:-

Accounting -> Customer -> Invoice -> Select Invoice -> Delete attach invoice -> Again print.

I hope you find this information helpful.

Thank you and have a nice day

Avatar
Buang
Jawaban Terbai

I see what's happening. When you reset the invoice status to draft and add more line items, Odoo should defintely reflect those changes in the PDF invoice. I've run into this issue before, and it's often due to a caching problem. Odoo sometimes caches the PDF, especially if you're using any custom templates or modles, which can prevent new data from appearing immediately.


First, try clearing the cache and check again. You can do this by restarting the Odoo server, which forces it to generate the PDF fro scratch. If taht doesn't work, look into the PDF template. Sometimes, the template might not be updated to accommodate new line items correctly. Make sure the report template is using the right variables for line items.


If you've customized the invoice generation process or use a third-party module, make sure they're compatible with Odoo's base functionalities. Third-party apps or customizations might not always be fully compatible with core updates.


Also, check the logs for any error messages when generating the PDF. They could offer clues if there's a bigger issue at play. If you're stuck, talk it over on the Odoo community forums or reach out to a consultant. Sometimes these issues need an expert eye to spot what's going wrong.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Apr 24
3109
0
Apr 24
2069
7
Mei 23
33073
0
Agu 22
2582
1
Mar 22
3845