Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Invoice PDF preview Issue

Avatar
Discard
2 Answers
0
Avatar
odoo
Best Answer

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
Discard
0
Avatar
odoo
Best Answer

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
Discard