Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1922 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
dub 24
3106
0
dub 24
2067
7
kvě 23
33072
0
srp 22
2580
1
bře 22
3843