Skip to content
Snippets Groups Projects
Commit 1723c52d authored by luvi's avatar luvi Committed by Aaron Bohy
Browse files

[FIX] web: title missing on reload


This commit fixes an issue of the webclient where the tab
was missing the name of the action in the title after a
fresh load of the page.
e.g. after a reload or when duplicating a tab in sales, the
title was 'Odoo' instead of 'S00001 - Odoo'.

closes odoo/odoo#79518

X-original-commit: 842ffc41
Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
parent 810f5528
Branches
Tags
No related merge requests found
......@@ -735,9 +735,17 @@ var ActionManager = Widget.extend({
var controller = this.controllers[controllerID];
if (controller) {
var action = this.actions[controller.actionID];
if (action.target === 'new' || action.pushState === false) {
// do not push state for actions in target="new" or for actions
// that have been explicitly marked as not pushable
if (action.target === 'new') {
// do not push state for actions in target="new"
return;
}
if (action.pushState === false) {
// do not push state for actions that have been explicitly
// marked as not pushable but trigger the title change
this.trigger_up('set_title_part', {
part: "action",
title: controller.widget.getTitle()
});
return;
}
state = _.extend({}, state, this._getControllerState(controller.jsID));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment