add web_window_title
This commit is contained in:
parent
c17ceb75a3
commit
190d1f09c2
11 changed files with 172 additions and 0 deletions
12
web_window_title/static/src/js/web_window_title.js
Normal file
12
web_window_title/static/src/js/web_window_title.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/** @odoo-module alias=web.window.title **/
|
||||
|
||||
import { WebClient } from "@web/webclient/webclient";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
patch(WebClient.prototype, "Web Window Title", {
|
||||
setup() {
|
||||
const title = document.title;
|
||||
this._super();
|
||||
this.title.setParts({ zopenerp: title });
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue