Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
9801 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

Hi Mihran,

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

Аватар
Відмінити
Найкраща відповідь

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"/>
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лип. 19
4856
1
лют. 22
3259
2
бер. 19
9818
4
черв. 24
5704
3
лист. 19
7357