تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1731 أدوات العرض

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
يونيو 24
17
0
يناير 25
1026
0
سبتمبر 24
1206
1
أبريل 24
1643
4
يناير 19
7806