Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Multiple files (images) upload

by
InitOS GmbH, Pete Hahn
- 17/11/2020 11:12:58
Dear Contributors,

on a custom model we needed to have multiple images attached in a
separate notebook page.
We solved this using a kanban widget on a simple model, that contains
the image as binary field.
The drawback is, that you need to add each image one by one since you
need to create new records of the containing model used for the kanban
view to add images.
The customer is asking for the possibility to add images by a multi
select file dialog.
Afaik this isn’t possible in odoo, since there is always exactly one
binary field per image, so I would need something to create several
records in one go.

The only widget I know that is capable of doing this is the one used for
adding attachments to forms (marked red in the screenshot below).

Do you have any hints how to realize something like this?
There seams to be nothing ready made available for this on the net.

Thanks. Regards, Peter

Follow-Ups