diff options
| author | hku-odoo <hku@odoo.com> | 2020-08-26 12:23:06 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-09-11 16:30:51 +0000 |
| commit | 7304bd20549ded71dc54072738515ea90aa9d6cd (patch) | |
| tree | 8971b5d753396660f1baca436a0147c2f9b65d42 /addons/web/static/src | |
| parent | a734aa9b2f2bce06989bf09f3096d0d631ccd438 (diff) | |
[FIX] web: fix picture glitch
currently, whenever the view is change the picture zoomed in
and still displayed, only disappears after having refreshed the page
so, in this commit the employee picture should no longer to be
zoomed in whenever change the view
closes odoo/odoo#57571
Taskid: 2311308
X-original-commit: 8214332ccd86e52c4f18de8d5428a1a22f2ad21c
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 8ebde6cbda9..cdb4c000e57 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1944,6 +1944,7 @@ var FieldBinaryImage = AbstractFieldBinary.extend({ this.hide(); } core.bus.on('keydown', this, this.hide); + core.bus.on('click', this, this.hide); }, beforeAttach: function () { this.$flyout.css({ width: '512px', height: '512px' }); |
