Storage Thumbnail
storage_thumbnail · OCA/storage
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 8 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
3 models
2 views
0 HTTP endpoints
Description
External image thumbnail management depending on Storage File module.
Dependencies
- Odoo dependencies
- Python dependencies
- python_slugify
- System dependencies
- None
- Required by
- storage_image, storage_media
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_thumbnail_form |
storage.thumbnail | form | New | |
view_thumbnail_tree |
storage.thumbnail | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
file_typeSelectionondelete={'thumbnail': 'set null'}selection_add=[('thumbnail', 'Thumbnail')]
No public methods.
New fields (6)
-
file_idMany2one → storage.fileondelete='cascade'required=True args: 'storage.file', 'File' -
res_idIntegerindex=Truereadonly=False -
res_modelCharindex=Truereadonly=False -
size_xIntegerargs: 'X size' -
size_yIntegerargs: 'Y size' -
url_keyCharhelp='Specific URL key for generating the url of the image'
-
create(self, vals_list)@api.model_create_multi -
unlink(self)
New fields (5)
-
image_medium_urlCharcompute='_compute_thumb_urls'compute_sudo=Truestring='Medium thumb URL' -
image_small_urlCharcompute='_compute_thumb_urls'compute_sudo=Truestring='Small thumb URL' -
thumb_medium_idMany2one → storage.thumbnailcomodel_name='storage.thumbnail'compute='_compute_main_thumbs'compute_sudo=Truereadonly=Falsestore=True -
thumb_small_idMany2one → storage.thumbnailcomodel_name='storage.thumbnail'compute='_compute_main_thumbs'compute_sudo=Truereadonly=Falsestore=True -
thumbnail_idsOne2many → storage.thumbnailcomodel_name='storage.thumbnail'domain=<expr>inverse_name='res_id'string='Thumbnails'
-
create(self, vals_list)@api.model_create_multi -
generate_odoo_thumbnail(self) -
get_existing_thumbnail(self, size_x, size_y, url_key=None) -
get_or_create_thumbnail(self, size_x, size_y, url_key=None)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…