DB attachments saved by checksum
attachment_db_by_checksum · OCA/storage
Health
32/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 40 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
1 migration note
2 models
0 views
0 HTTP endpoints
Migration considerations
AttachmentContent— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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`.