TIP: You can type at any time to perform a new search.
DB attachments saved by checksum
attachment_db_by_checksum · OCA/storage
- Repository
- OCA/storage · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Storage
- Folder size
- 0.04 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/storage
- Last tracking update
- 2026-08-07 07:47:38
- Authors
- Odoo Community Association (OCA), TAKOBI
- Maintainers
- Odoo Community Association (OCA), TAKOBI
- Committers
- Simone Rubino, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (2)-
force_storage(self)@api.model -
force_storage_by_checksum(self)@api.modelCopy all the attachments to `Attachment content by hash`.
New fields (2)
-
checksumCharhelp='Checksum in the shape 2a/2a...\n'index=Truereadonly=Truerequired=Truestring='Checksum/SHA1' -
db_datasBinaryattachment=Falsestring='Database Data'
-
search_by_checksum(self, fname)Get Attachment content, searching by `fname`. Note that `fname` is the relative path of the attachment as it would be saved by the core, for example 2a/2a..., this is the same value that we store in field `ir.attachment.content.checksum`.