Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Storage Thumbnail

Entity: thumbnail.mixin

Compute Method: _compute_main_thumbs

Inputs Method Outputs
for rec in self:
            for scale in self._image_scale_mapping.keys():
                fname = f"thumb_{scale}_id"
                rec[fname] = rec._get_thumb(scale_key=scale)

Back to entity