Commit Graph

3 Commits

Author SHA1 Message Date
Víctor Martínez
25dba93d16 [MIG] attachment_zipped_download: Migration to 18.0
TT54112
2025-01-28 08:29:37 +01:00
Pierre Verkest
25ceed4377 [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...).

attachment_zipped_download 16.0.1.0.2
2025-01-28 08:25:06 +01:00
Víctor Martínez
8885cfecf1 [ADD] attachment_zipped_download: New addon.
TT33403

[UPD] Update attachment_zipped_download.pot

[UPD] README.rst
2025-01-28 08:25:04 +01:00