Skip to Content
Menú
This question has been flagged
1 Respondre
4322 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 25
2016
1
de maig 20
3404
0
de març 20
3407
1
de maig 19
4796
2
de març 15
8061