跳至內容
選單
此問題已被標幟
1 回覆
2235 瀏覽次數

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

頭像
捨棄
最佳答案

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.



頭像
捨棄
作者

Hi Mihran,

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

相關帖文 回覆 瀏覽次數 活動
3
7月 20
23756
5
5月 25
9539
0
10月 24
1735
0
8月 24
1564
0
1月 24
2046