Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4221 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 25
1841
1
Mei 20
3285
0
Mar 20
3247
1
Mei 19
4686
2
Mar 15
7924