Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4284 Представления

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 Ответы Просмотры Активность
1
июл. 25
1948
1
мая 20
3366
0
мар. 20
3320
1
мая 19
4746
2
мар. 15
8012