How to add image in report
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
13777
มุมมอง
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ