Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1720 มุมมอง

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.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 24
17
0
ม.ค. 25
1024
0
ก.ย. 24
1198
1
เม.ย. 24
1634
4
ม.ค. 19
7798