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

When i am trying to upload more than images at a time in the form view of my model,i am unable to upload multiple images at a time.

Is there any attribute used that i can able to upload multiple images at a time ?

please suggest

in my .py file:

image = fields.Binary('Upload Image')

and in my .xml file :

<field name="image" string='Upload image' widget="image" required='1' options="{'preview_image': 'image_small', 'size': [150, 150]}"/>​

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

Hi, 

You can add bulk images in binary field at a time by means of an attachment.

For an explanation, refer this link: https://www.odoo.com/forum/help-1/question/upload-an-image-as-an-attachment-125213

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you

You are welcome

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 21
1878
1
thg 9 19
4226
0
thg 8 19
3112
1
thg 6 19
5948
0
thg 11 20
4