Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
9200 Weergaven

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
Annuleer
Auteur

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

Beste antwoord

 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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 23
2953
0
jun. 21
2872
1
mei 23
3089
1
feb. 25
4635
1
apr. 19
10440