attachment_zipped_download
Enable users to download multiple Odoo attachments as a ZIP archive and offer a mixin to expose the same download action on other models.
Key Features
- ir.attachment: Adds a server action that downloads selected binary attachments together, warning when nothing eligible is chosen.
- ir.attachment: Builds a temporary ZIP from attachments after enforcing read access, allowing the internal file names to be customized.
- controllers: Exposes an HTTP route that streams the combined attachments as a downloadable ZIP archive.
- ir.attachment.action_download: Supplies a mixin that collects model-linked attachments and returns either a warning, a single-file download, or a ZIP download depending on what exists.
- ir.attachment.action_download: Lets module developers override the attachment selection method to restrict which documents can be downloaded.