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

Hi,

I am using many2many binary widget for ir.attachment many2many field for adding images. The issue is after saving form the image thumbnails are not appearing only image url is appearing. Is there any way to show thumbnails after saving form in odoo 12.


Thank you

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi Mihran,

This one I know, and this is not the issue I reported. I reported for many2many field with ir_attachmnet

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Sunil,


Add a new binary field and call that field in XML with image widget. For example,

image = fields.Binary(string="Image")
and in XML add,
<field name='image' widget="image" class="oe_avatar"/>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 19
4820
1
thg 2 22
3244
2
thg 3 19
9802
4
thg 6 24
5697
3
thg 11 19
7354