Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4283 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 25
1946
1
maj 20
3364
0
mar. 20
3318
1
maj 19
4744
2
mar. 15
8011