Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4101 มุมมอง

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', ], },

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Team,

Check the related forum:https://www.odoo.com/forum/help-1/change-title-odoo-on-tab-browser-odoo-15-213654


Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด
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" });
},
});
อวตาร
ละทิ้ง

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 ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 24
2982
2
เม.ย. 24
5146
0
ม.ค. 24
40
0
ต.ค. 24
2331
3
ก.พ. 25
1571