Commit Graph

4 Commits

Author SHA1 Message Date
Ivan Sokolov
0e785715f0 Updated from template 2023-11-06 20:05:11 +01:00
Pierre Verkest
66dd5ab063 [IMP] attachment_zipped_download: provide ir.attachment.action_download mixin
This helps to download multiple attachments from any models.
2023-08-31 10:15:50 +02:00
Pierre Verkest
4c2c45ef0a [FIX] attachment_zipped_download: zip allowed document only
The previous code allowed any authenticated to retreive any attachment present
on odoo filesystem. So a WMS user could technically spoken download a zip with
accounting documents.

This implementation is calling attachemnt.check("read") to ensure access
right and use attachemnt.raw attribute to retreive file to archive which
(not test) should works with attachment saved somewhere else than the
local filesystem (s3 storage, pgsql large object storage...).
2023-08-29 10:46:58 +02:00
Víctor Martínez
144a782889 [ADD] attachment_zipped_download: New addon.
TT33403
2022-12-16 11:25:50 +01:00