19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:27 +01:00
parent d1963a3c3a
commit 2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions

View file

@ -310,7 +310,14 @@ class Image(Binary):
self._update_cache(record, value, dirty=True)
def _image_process(self, value, env):
if self.readonly and not self.max_width and not self.max_height:
if self.readonly and (
(not self.max_width and not self.max_height)
or (
isinstance(self.related_field, Image)
and self.max_width == self.related_field.max_width
and self.max_height == self.related_field.max_height
)
):
# no need to process images for computed fields, or related fields
return value
try: