Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
8811 Переглядів

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 ?

Аватар
Відмінити
Автор

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

Найкраща відповідь

 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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 23
2562
0
черв. 21
2522
1
трав. 23
2802
1
лют. 25
4263
1
квіт. 19
10014