Closed petrus-v closed 1 year ago
@pedrobaeza @victoralmau I suppose you should care about this PR regarding access privileged to attachments according the context your are using this module !
Can you please squash commits?
Can you please squash commits?
done !
/ocabot merge patch
On my way to merge this fine PR! Prepared branch 14.0-ocabot-merge-pr-411-by-pedrobaeza-bump-patch, awaiting test results.
Congratulations, your PR was merged at c04885e0e9783a8031697af8121e9639325b4fa3. Thanks a lot for contributing to OCA. ❤️
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 read() method to retreive file to archive which have two benefits: