TIP: You can type at any time to perform a new search.
Storage Thumbnail
storage_thumbnail · OCA/storage
- Repository
- OCA/storage · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Storage
- Folder size
- 0.06 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/storage
- Last tracking update
- 2026-08-07 09:06:25
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Stéphane Bidoul, Laurent Mignon (ACSONE)
- Odoo dependencies
- Python dependencies
- python_slugify, cachetools
- System dependencies
- None
- Required by
- storage_image, storage_media
- Description
External image thumbnail management depending on Storage File module.
Code Analysis ⓘ
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…