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
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
2
Vastaukset
7294
Näkymät
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
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
0
maalisk. 15
|
3327 | ||
|
2
marrask. 22
|
3720 | ||
|
3
huhtik. 25
|
11183 | ||
|
1
helmik. 16
|
7670 | ||
|
1
tammik. 16
|
4050 |