Skip to Content
मेन्यू
This question has been flagged
1 Reply
4310 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
जुल॰ 25
1995
1
मई 20
3395
0
मार्च 20
3386
1
मई 19
4774
2
मार्च 15
8052