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_thumb_urls

View 18.0
Inputs Method Outputs
  • backend_view_use_internal_url
  • thumb_medium_id
  • thumb_small_id
+ for backend, records in tools.groupby(self, lambda x: x.backend_id):
+             url_fname = "url"
+             if backend.backend_view_use_internal_url:
+                 url_fname = "internal_url"
+             for rec in records:
+                 rec.image_medium_url = rec.thumb_medium_id[url_fname]
+                 rec.image_small_url = rec.thumb_small_id[url_fname]
  • image_medium_url
  • image_small_url

Back to entity