Skip to Content
Menu
This question has been flagged
1 Reply
1685 Views

Hi,

I just started learning odoo and i need a bit of help on this issue.

So, I have asked user to upload an image and enter a name while creating a new Invoice. These name and image are then to be displayed in invoice header area. The problem here is that when i inherit report_template and call the field it displays the last entered entry instead of actually going into the invoice details and fetching the value it just displays the last value. Like for example if i have two invoices and i'm trying to print 1st invoice, the header details comes of the 2nd invoice. The ideal print should go to the details and fetch matching records of 1st invoice but the functionality right now just fetches the last record in the database. I know what my error is i don't know how to rectify it as im a newbie to this odoo. Can anyone please help me and guide me on how to get this right

Thanks in advance

Avatar
Discard
Best Answer

Hi,



Try calling the image and name through the corresponding invoice ID. Each invoice ID should have an image and name associated with it after your modification. So try calling the former using the respective invoice ID.



Avatar
Discard
Author

Hi Mihran,

I have done this and it works fine. Thanks for your help though.

Related Posts Replies Views Activity
3
Jul 20
21388
0
Oct 24
161
0
Aug 24
166
0
Jan 24
738
1
Nov 23
419