diff --git a/src/action.js b/src/action.js index ee0bbb559d..7887b1331e 100644 --- a/src/action.js +++ b/src/action.js @@ -79,10 +79,7 @@ params.tab_domain.push( [element[0], decoder.decode(element[1])]); }); - params.name = false; - if (action.window_name) { - params.name = action.name; - } + params.name = action.name; params.model = action.res_model || data.res_model; params.res_id = action.res_id || data.res_id; params.context_model = action.context_model; diff --git a/src/board.js b/src/board.js index 89eb0425d0..c7613a8954 100644 --- a/src/board.js +++ b/src/board.js @@ -242,10 +242,8 @@ if (attributes.string) { this.title.html(attributes.string); - } else if (this.action.window_name !== undefined) { - this.title.html(this.action.name); } else { - this.title.html(this.screen.current_view.title); + this.title.html(this.action.name); } this.screen.switch_view().done(function() { this.body.append(this.screen.screen_container.el);