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

I'm trying to add o image widget in odoo screeen,

I have used the field as below ,

  image = fields.Binary("Image", attachment=True,
                          help="This field holds the image used as avatar for \
        this contact, limited to 1024x1024px",)

XML :

<field name="image" widget='image' class="oe_avatar"/>

The uploaded image has white space around image, how to upload image as it is , without adding white space around image ?

아바타
취소
작성자

I am stuck with this issue please anybody suggest me an idea

베스트 답변

 image = fields.Binary("Image", help="This field holds the image used as avatar for \
        this contact, limited to 1024x1024px",)

Just try with these simple method. removing attachement.

아바타
취소
관련 게시물 답글 화면 활동
1
1월 23
2758
0
6월 21
2681
1
5월 23
2954
1
2월 25
4425
1
4월 19
10232