Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2030 Переглядів

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.



Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

Hi Antony Cleverence,

Thank you for your response.

In fact, we were able to accomplish this functionality by overriding the existing base function.

Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
квіт. 24
3131
0
квіт. 24
2096
7
трав. 23
33111
0
серп. 22
2612
1
бер. 22
3875