Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4311 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 25
2001
1
kvě 20
3397
0
bře 20
3387
1
kvě 19
4776
2
bře 15
8052