Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
8826 Widoki

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 ?

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

 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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 23
2573
0
cze 21
2537
1
maj 23
2817
1
lut 25
4285
1
kwi 19
10027