If i have a module with an image, how to embed an image from my field on module to webkit pdf.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
2
Replies
7316
Views
I found it:
On your mako template:
${helper.embed_image('png', object.image,50,50) | n}
Where
helper.embed_image(image_type, object_image,width,height)
We use in sale_order:
<img src="data:image/png;base64,${line.product_id.image}" />
But than you must sure that all product images are png.
In some case, if you want to add fixed image, I will use base64 module to encode, decode this image and insert it into report
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Mar 15
|
3351 | ||
|
2
Nov 22
|
3753 | ||
|
3
Apr 25
|
11212 | ||
|
1
Feb 16
|
7691 | ||
|
1
Jan 16
|
4080 |