Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
1690 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

Já consegui :)

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
aug. 23
1851
1
jul. 23
2375
1
mei 24
3214
2
mrt. 24
2143
1
apr. 25
1239