İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
8773 Görünümler

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
Vazgeç
Üretici

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

En İyi Yanıt

 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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Oca 23
2516
0
Haz 21
2487
1
May 23
2758
1
Şub 25
4216
1
Nis 19
9978