Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
8412 Vues

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

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

Meilleure réponse

 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
Ignorer
Publications associées Réponses Vues Activité
1
janv. 23
2077
0
juin 21
2155
1
mai 23
2407
1
févr. 25
3862
1
avr. 19
9536