Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7364 Vistas

If i have a module with an image, how to embed an image from my field on module to webkit pdf.

Avatar
Descartar
Autor Mejor respuesta

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)
Avatar
Descartar
Mejor respuesta

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.

Avatar
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3400
2
nov 22
3808
3
abr 25
11246
1
feb 16
7732
1
ene 16
4123