Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hi Mihran,

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

Awatar
Odrzuć
Najlepsza odpowiedź

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"/>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 19
4801
1
lut 22
3232
2
mar 19
9787
4
cze 24
5696
3
lis 19
7354