Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1544 Переглядів

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.



Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор Найкраща відповідь

Já consegui :)

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
серп. 23
1677
1
лип. 23
2224
1
трав. 24
2952
2
бер. 24
1904
1
квіт. 25
1040