Skip to Content
मेन्यू
This question has been flagged
2 Replies
8791 Views

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
Discard
Author

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.

Avatar
Discard
Related Posts Replies Views Activity
1
जन॰ 23
2523
0
जून 21
2500
1
मई 23
2773
1
फ़र॰ 25
4235
1
अप्रैल 19
9997