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

 How to add image in report

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

try this code,​

    1)image from static folder    
        <img class="img" src="/your_module/static/src/img/your_image.png" style="height:45%;width:100%;" />
   
    2)Image from database
        <img t-att-src="'data:image/png;base64,%s' % to_text(doc.yor_field_name)"/>

Thanks !!!  

Aswini @ iWesabe

   


อวตาร
ละทิ้ง