Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8788 Zobrazení

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
Zrušit
Autor

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

Nejlepší odpověď

 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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 23
2522
0
čvn 21
2497
1
kvě 23
2772
1
úno 25
4234
1
dub 19
9995