Commit Graph

3 Commits

Author SHA1 Message Date
Pierre Verkest
420ae570e6 [IMP] attachment_zipped_download: provide ir.attachment.action_download mixin
This helps to download multiple attachments from any models.
2023-08-19 23:48:12 +02:00
Pierre Verkest
e8a1329667 [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-05-03 09:20:18 +02:00
Víctor Martínez
f1857c08ee [ADD] attachment_zipped_download: New addon.
TT33403
2022-03-16 09:55:48 +01:00