Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
OCA/storage:
odoo/odoo:
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 IDNameModelTypeStatus
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_type Selection
    ondelete={'thumbnail': 'set null'} selection_add=[('thumbnail', 'Thumbnail')]
Public methods (0)

No public methods.

New fields (6)
  • file_id Many2one → storage.file
    ondelete='cascade' required=True args: 'storage.file', 'File'
  • res_id Integer
    index=True readonly=False
  • res_model Char
    index=True readonly=False
  • size_x Integer
    args: 'X size'
  • size_y Integer
    args: 'Y size'
  • url_key Char
    help='Specific URL key for generating the url of the image'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)

New fields (5)
  • image_medium_url Char
    compute='_compute_thumb_urls' compute_sudo=True string='Medium thumb URL'
  • image_small_url Char
    compute='_compute_thumb_urls' compute_sudo=True string='Small thumb URL'
  • thumb_medium_id Many2one → storage.thumbnail
    comodel_name='storage.thumbnail' compute='_compute_main_thumbs' compute_sudo=True readonly=False store=True
  • thumb_small_id Many2one → storage.thumbnail
    comodel_name='storage.thumbnail' compute='_compute_main_thumbs' compute_sudo=True readonly=False store=True
  • thumbnail_ids One2many → storage.thumbnail
    comodel_name='storage.thumbnail' domain=<expr> inverse_name='res_id' string='Thumbnails'
Public methods (4)
  • 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…