Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
8785 Visualizzazioni

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
Abbandona
Autore

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

Risposta migliore

 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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 23
2521
0
giu 21
2496
1
mag 23
2770
1
feb 25
4231
1
apr 19
9988