diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-06 12:02:58 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-06 12:02:58 +0100 |
| commit | 8ef7af6afe54fbd59051bbbce76daadd6fdb0e86 (patch) | |
| tree | b21971e972eacc87e198fbc38b48ac9b70d168fc /odoo/tools/image.py | |
| parent | 010add290342ae1e2887450a381e0d1f0acd34e5 (diff) | |
| parent | f96a797fe6238306ec70d3db013b8a4d348ef181 (diff) | |
[MERGE] forward port branch 11.0 up to f96a797fe62
Diffstat (limited to 'odoo/tools/image.py')
| -rw-r--r-- | odoo/tools/image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/tools/image.py b/odoo/tools/image.py index fec14f0eac4..b3e02659bfd 100644 --- a/odoo/tools/image.py +++ b/odoo/tools/image.py @@ -282,6 +282,8 @@ def image_resize_images(vals, big_name='image', medium_name='image_medium', smal return_big=True, return_medium=True, return_small=True, big_name=big_name, medium_name=medium_name, small_name=small_name, avoid_resize_big=True, avoid_resize_medium=True, avoid_resize_small=True)) + elif big_name in vals or medium_name in vals or small_name in vals: + vals[big_name] = vals[medium_name] = vals[small_name] = False if __name__=="__main__": |
