Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
8867 Visninger

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
Kassér
Forfatter

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

Bedste svar

 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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 23
2609
0
jun. 21
2570
1
maj 23
2841
1
feb. 25
4300
1
apr. 19
10062