Skip to Content
Menu
This question has been flagged
2 Replies
3578 Views

working fine in Odoo15 and Odoo16 . but not working in Odoo17
-----------------------------js------------------------------
/ @odoo-module /


import { WebClient } from "@web/webclient/webclient";

import { patch } from "web.utils";


patch(WebClient.prototype, "bdtask_customize_header_title_logo.WebClient", {

    setup() {

        this._super();

        this.title.setParts({ zopenerp: "Bdtask" });

    },

});
-------------------------manifest---------------------------------
'assets': { 'web.assets_backend_prod_only': [ 'bdtask_customize_header_title_logo/static/src/js/favicon.js', ], },

Avatar
Discard
Best Answer
Hope this help:

/** @odoo-module **/

import { registry } from "@web/core/registry";
import { WebClient } from "@web/webclient/webclient"
import {patch} from "@web/core/utils/patch";
import { useService } from "@web/core/utils/hooks";

// Changes Odoo to My Title in window title
patch(WebClient.prototype, {
setup() {
super.setup();
const titleService = useService("title");
titleService.setParts({ zopenerp: "My Title" });
},
});
Avatar
Discard

Is this for v17?

Yes @Arnaud Vanspauwen. The following post, with the same answer, has a comment with one way to implement it:

https://www.odoo.com/es_ES/forum/ayuda-1/window-title-odoo17-240409

Related Posts Replies Views Activity
1
Aug 24
1898
2
Apr 24
4023
0
Jan 24
40
0
Oct 24
1670
3
Feb 25
1069