跳至内容
菜单
此问题已终结
2 回复
1634 查看

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 :)

形象
丢弃
相关帖文 回复 查看 活动
0
8月 23
1775
1
7月 23
2320
1
5月 24
3137
2
3月 24
2052
1
4月 25
1200