From a4d55a8a0b48f9a626c2e74336f196da0ca43406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=ADaz?= Date: Thu, 20 Jun 2019 17:06:26 +0200 Subject: [PATCH] [FIX] web_responsive: Close AppDrawer --- web_responsive/__manifest__.py | 2 +- web_responsive/static/src/js/web_responsive.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web_responsive/__manifest__.py b/web_responsive/__manifest__.py index 0d5d1564a..f190bd608 100644 --- a/web_responsive/__manifest__.py +++ b/web_responsive/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Responsive", "summary": "Responsive web client, community-supported", - "version": "12.0.1.1.0", + "version": "12.0.1.1.1", "category": "Website", "website": "https://github.com/OCA/web", "author": "LasLabs, Tecnativa, Alexandre Díaz, " diff --git a/web_responsive/static/src/js/web_responsive.js b/web_responsive/static/src/js/web_responsive.js index 7750fd500..f128f2c59 100644 --- a/web_responsive/static/src/js/web_responsive.js +++ b/web_responsive/static/src/js/web_responsive.js @@ -396,8 +396,9 @@ odoo.define('web_responsive', function (require) { _hideMenusByAction: function (action) { var uniq_sel = '[data-action-id='+action.id+']'; // Need close AppDrawer? - $(_.str.sprintf('.o_menu_apps .dropdown.show:has(%s)', uniq_sel)) - .dropdown('toggle'); + $(_.str.sprintf( + '.o_menu_apps .dropdown:has(.dropdown-menu.show:has(%s)) > a', + uniq_sel)).dropdown('toggle'); // Need close Sections Menu? // TODO: Change to 'hide' in modern Bootstrap >4.1 $(_.str.sprintf(