Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4271 Lượt xem

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


 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
1933
1
thg 5 20
3340
0
thg 3 20
3313
1
thg 5 19
4735
2
thg 3 15
7992