Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4196 Näkymät

I created a class with an image field

        'image': fields.binary("Image",),

I added the "image" widget on the xml view file

   <field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>

The image placeholder appeared successfully on the view when I upgraded the module, but when I select an image and save the screen nothing is saved, what is missing?, pls help


 

Avatar
Hylkää
Paras vastaus

Hello,

I think this because you're using options='{"preview_image": image_medium"}'. and you don't have this field 'image_medium' you can check this lines 


Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 25
1786
1
toukok. 20
3243
0
maalisk. 20
3183
1
toukok. 19
4671
2
maalisk. 15
7883