콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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"/>
아바타
취소
관련 게시물 답글 화면 활동
0
7월 19
4810
1
2월 22
3234
2
3월 19
9789
4
6월 24
5697
3
11월 19
7354