Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7458 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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)
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3510
2
thg 11 22
3965
3
thg 4 25
11381
1
thg 2 16
7857
1
thg 1 16
4254