İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7394 Görünümler

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

Avatar
Vazgeç
Üretici En İyi Yanı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)
Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 15
3415
2
Kas 22
3836
3
Nis 25
11290
1
Şub 16
7784
1
Oca 16
4157