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:
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.model
    Copy all the attachments to `Attachment content by hash`.

New fields (2)
  • checksum Char
    help='Checksum in the shape 2a/2a...\n' index=True readonly=True required=True string='Checksum/SHA1'
  • db_datas Binary
    attachment=False string='Database Data'
Public methods (1)
  • 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`.