Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8333 Представления

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
2019
0
июн. 21
2050
1
мая 23
2272
1
февр. 25
3752
1
апр. 19
9368