Merge PR #1442 into 12.0

Signed-off-by pedrobaeza
pull/1447/head
OCA-git-bot 2019-11-21 09:57:53 +00:00
commit 9638ae9ce3
1 changed files with 18 additions and 16 deletions

View File

@ -442,6 +442,7 @@ odoo.define('web_responsive', function (require) {
* The executed action * The executed action
*/ */
_hideMenusByAction: function (action) { _hideMenusByAction: function (action) {
_.defer(function () {
var uniq_sel = '[data-action-id='+action.id+']'; var uniq_sel = '[data-action-id='+action.id+']';
// Need close AppDrawer? // Need close AppDrawer?
var menu_apps_dropdown = document.querySelector( var menu_apps_dropdown = document.querySelector(
@ -458,6 +459,7 @@ odoo.define('web_responsive', function (require) {
var menu_sections_mobile = document.querySelector( var menu_sections_mobile = document.querySelector(
'.o_menu_sections.show'); '.o_menu_sections.show');
$(menu_sections_mobile).has(uniq_sel).collapse('hide'); $(menu_sections_mobile).has(uniq_sel).collapse('hide');
});
}, },
_handleAction: function (action) { _handleAction: function (action) {