Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2219 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.



Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Mihran,

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 20
23741
5
thg 5 25
9537
0
thg 10 24
1735
0
thg 8 24
1562
0
thg 1 24
2045