Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
8778 Tampilan

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 ?

Avatar
Buang
Penulis

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

Jawaban Terbai

 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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 23
2518
0
Jun 21
2494
1
Mei 23
2768
1
Feb 25
4227
1
Apr 19
9983