Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
8395 Vizualizări

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 ?

Imagine profil
Abandonează
Autor

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

Cel mai bun răspuns

 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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
ian. 23
2055
0
iun. 21
2108
1
mai 23
2334
1
feb. 25
3818
1
apr. 19
9449