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

Hi,
I currently working with migration v9 to v13.

<td t-if="partner['Image']">
    <img t-att-src="'data:image/png;base64,%s' % partner['Image']"/>
</td>

it used to print partner image on Qweb reports in v9. but it doesn't work v13 can any one help
Python Brains


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Try the following code instead of current code

<t t-if="partner['Image']">
    <img t-att-src="image_data_uri(partner['Image'])"/>
</t>

Regards

อวตาร
ละทิ้ง