From 54c2103014831c84ccd276eeef4ac550becd3f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=ADaz?= Date: Thu, 8 Aug 2019 16:43:40 +0200 Subject: [PATCH] [IMP] web_responsive: Don't show menu if waiting for an action to end --- web_responsive/static/src/js/web_responsive.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web_responsive/static/src/js/web_responsive.js b/web_responsive/static/src/js/web_responsive.js index 1851de9df..b356c0b8c 100644 --- a/web_responsive/static/src/js/web_responsive.js +++ b/web_responsive/static/src/js/web_responsive.js @@ -351,6 +351,17 @@ odoo.define('web_responsive', function (require) { return this._super.apply(this, arguments); } }, + + /** + * Don't display the menu if are waiting for an action to end + * + * @override + */ + _onMouseOverMenu: function () { + if ($('.oe_wait').length === 0) { + this._super.apply(this, arguments); + } + }, }); RelationalFields.FieldStatus.include({