mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 11:52:04 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue