コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4199 ビュー

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 


アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 25
1795
1
5月 20
3247
0
3月 20
3192
1
5月 19
4672
2
3月 15
7890