跳至內容
選單
此問題已被標幟
1717 瀏覽次數

In the code below I want to show an image based on the condition that it exists. I wrote it in odoo 15. But for odoo 17 this condition is not working. I am getting "internal error" for this condition. 
How do I avoid this? 




div class="col-3 pdp_icon_div" t-options="{'widget': 'image'}"
t t-if="ptal.attribute_id.attr_image"
img t-att-src="'data:image/jpeg;base64,'+ptal.attribute_id.attr_image.decode('utf-8')"
alt="Image" class="pdp_attr_img"
/t
/div


Sorry,  ^code is getting removed for some reason.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
6月 24
17
0
1月 25
1024
0
9月 24
1198
1
4月 24
1630
4
1月 19
7798