Fs Base Multi Media
fs_base_multi_media · OCA/storage
-
Security25/25No findings
-
Activity6/25Last human commit 31 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
fs_media_relation_mixin_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcefs_media_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcefs_media_type_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
This addon allows you to store media file into external filesystem from odoo. It also provides is a technical mixin model to ease the creation of other models that need to be linked to multiple medias stored into external filesystems.
The models provided by this addon are:
fs.media: a model that stores a reference to an media stored into an external filesystem.fs.media.relation.mixin: an abstract model that can be used to as base class for models created to store an media linked to a model. This abstract model defines fields and methods to transparently handle 2 cases:- the media is specific to the model.
- the media is shared between multiple models and therefore is a
fs.mediainstance linked to the mixin.
Dependencies
- Odoo dependencies
- Python dependencies
- fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
- System dependencies
- None
- Required by
- fs_product_multi_media
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fs_media_form_view |
fs.media.form | fs.media | form | New |
fs_media_relation_mixin_form_view |
fs.media.relation.mixin.form | fs.media.relation.mixin | form | New |
fs_media_relation_mixin_tree_view |
fs.media.relation.mixin.tree | fs.media.relation.mixin | tree | New |
fs_media_search_view |
fs.media.search | fs.media | search | New |
fs_media_tree_view |
fs.media.tree | fs.media | tree | New |
fs_media_type_view_form |
fs.media.type | form | New | |
fs_media_type_view_search |
fs.media.type | search | New | |
fs_media_type_view_tree |
fs.media.type | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
media_type_idMany2one → fs.media.typeargs: 'fs.media.type', 'Media Type' -
mimetypeCharcompute='_compute_mimetype'store=True -
nameCharcompute='_compute_name'index=Truestore=True
No public methods.
-
link_existingBooleandefault=Falsestring='Link existing media' -
media_idMany2one → fs.mediacomodel_name='fs.media'string='Linked media' -
media_type_idMany2one → fs.media.typecompute='_compute_media'store=False args: 'fs.media.type' -
mimetypeCharcompute='_compute_mimetype'store=True -
nameCharcompute='_compute_name'index=Truestore=True -
sequenceInteger -
specific_media_type_idMany2one → fs.media.typeargs: 'fs.media.type'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
-
codeChar -
nameCharrequired=Truetranslate=True
No public methods.
Loading…