Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4110 Zobrazení

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
Zrušit
Nejlepší odpověď
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
Zrušit

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 Odpovědi Zobrazení Aktivita
1
srp 24
2988
2
dub 24
5161
0
led 24
40
0
říj 24
2346
3
úno 25
1579