İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2236 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Hi Mihran,

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Tem 20
23757
5
May 25
9539
0
Eki 24
1736
0
Ağu 24
1564
0
Oca 24
2046