콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2092 화면

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

아바타
취소
관련 게시물 답글 화면 활동
2
4월 24
3206
0
4월 24
2164
7
5월 23
33174
0
8월 22
2665
1
3월 22
3929