Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4266 มุมมอง

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


 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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 


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Best product image size and resolution? แก้ไขแล้ว
1
ก.ค. 25
1931
1
พ.ค. 20
3339
0
มี.ค. 20
3311
1
พ.ค. 19
4734
2
มี.ค. 15
7989