From 7304bd20549ded71dc54072738515ea90aa9d6cd Mon Sep 17 00:00:00 2001 From: hku-odoo Date: Wed, 26 Aug 2020 12:23:06 +0000 Subject: [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) --- addons/web/static/src/js/fields/basic_fields.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/fields/basic_fields.js') 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' }); -- cgit v1.2.3