Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1569 Tampilan

Hello, everyone, 


I need some help, if possible.


What's happening to me, I'm trying to place images within a table in the quotation report, I made the call only from the view, but when I insert another product with the variants, it duplicates the images, so I created an inherit from the model, and created a function there to place the images in the line, based on the function that already exists, for the lines and quantities, it turns out that I always have this print error, even adjusting the function to ensure that the 'name' field that is already in the original function, is always present in the cell. But even doing it this way isn't working, I always get this same error.

I no longer know what I can do or how to fix this, can someone help me?


Thank you.



Avatar
Buang
Jawaban Terbai

Hi,


The "product.product" does not have a field named "name." 

Therefore, kindly substitute the line "cell['name'] = product.name" with "cell['name'] = product.product_tmpl_id.name."


Hope it helps

Avatar
Buang
Penulis Jawaban Terbai

Já consegui :)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 23
1695
1
Jul 23
2239
1
Mei 24
2988
2
Mar 24
1931
1
Apr 25
1066