Repository
OCA/storage · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/storage
Last tracking update
2026-08-07 08:42:56
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Florian Mounier, OCA-git-bot, oca-ci
Odoo dependencies
OCA/server-env:
OCA/storage:
odoo/odoo:
- web
Python dependencies
fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
System dependencies
None
Required by
search_engine_image_thumbnail
Description
This addon is a technical addon providing a set of models to ease the
creation of other models that need to be linked to multiple images
stored into external filesystems.

The models provided by this addon are:

- `fs.image`: a model that stores a reference to an image stored into an
  external filesystem.
- `fs.image.relation.mixin`: an abstract model that can be used to as
  base class for models created to store an image linked to a model.
  This abstract model defines fields and methods to transparently handle
  2 cases:
  - the image is specific to the model.
  - the image is shared between multiple models and therefore is a
    `fs.image` instance linked to the mixin.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
fs_image_form_view fs.image.form (in fs_base_multi_image) fs.image form New
fs_image_relation_mixin_form_view fs.image.relation.mixin.form fs.image.relation.mixin form New
fs_image_relation_mixin_kanban_view fs.image.relation.mixin.kanban fs.image.relation.mixin kanban New
fs_image_search_view fs.image.search (in fs_base_multi_image) fs.image search New
fs_image_tree_view fs.image.list (in fs_base_multi_image) fs.image list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • mimetype Char
    compute='_compute_mimetype' store=True
  • name Char
    compute='_compute_name' index=True store=True
Public methods (0)

No public methods.

New fields (5)
  • image_id Many2one → fs.image
    comodel_name='fs.image' string='Linked image'
  • link_existing Boolean
    default=False
  • mimetype Char
    compute='_compute_mimetype' store=True
  • name Char
    compute='_compute_name' index=True store=True
  • sequence Integer
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…