Skip to Content

Contributors

Re: Multiple files (images) upload

Thanks a lot for this hint.

I went another way since we already have our own storage model for this
and I didn’t had the time to change too much.

I made a simple Wizard using `FieldMany2ManyBinaryMultiFiles` widget.

Neverless, thanks for the hint to this interesting repo I didn’t knew of
before.

Am 17.11.20 um 11:32 schrieb Roussel, Denis:

> Hi Peter,

> You can look into  https://github.com/OCA/storage [1] to manage images the way you want.

> And you can review this  https://github.com/OCA/storage/pull/48 [2] that allows to handle multi image upload.

> Best regards,

by Pete Hahn - 09:51 - 18 Nov 2020

Reference

  • Multiple files (images) upload
    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
    

    by Pete Hahn - 11:20 - 17 Nov 2020