Skip to Content
Menu
This question has been flagged
2 Replies
8886 Rodiniai

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 ?

Portretas
Atmesti
Autorius

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

Best Answer

 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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
saus. 23
2629
0
birž. 21
2578
1
geg. 23
2849
1
vas. 25
4308
1
bal. 19
10077