mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
update document title on action done
This commit is contained in:
@@ -64,7 +64,7 @@ export function actionManagerMixin<T extends ReturnType<typeof rpcMixin>>(
|
||||
|
||||
async doAction(request: ActionRequest) {
|
||||
if (typeof request === "number") {
|
||||
await this.loadAction(request);
|
||||
const descr = await this.loadAction(request);
|
||||
// this is an action ID
|
||||
let name = request === 131 ? "discuss" : "crm";
|
||||
let title =
|
||||
@@ -84,6 +84,7 @@ export function actionManagerMixin<T extends ReturnType<typeof rpcMixin>>(
|
||||
}
|
||||
]
|
||||
});
|
||||
document.title = descr.name + " - Odoo";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user