Hello,
I am working with Odoo 17 Community and I want to change the text that appears in the browser tab title.
Right now, the browser tab shows:
Odoo – Students Odoo – New
I want to replace “Odoo” with my own project name (example: MySchool ERP).
I examined the backend template files and found that in web.layout, the <title> tag is defined as:
<title t-esc="title or 'Odoo'"/>
This seems to be the source of the browser title.
I tried creating a custom module and overriding this with:
<template id="custom_web_title" inherit_id="web.layout"> <xpath expr="//title" position="replace"> <title>MySchool ERP</title> </xpath> </template>
I added it in my __manifest__.py, restarted the server, upgraded the module, and hard-refreshed the browser, but the browser tab still shows “Odoo – …”.
It looks like the backend client (webclient) may dynamically override the title again after loading.
My questions:
What is the correct way to override the browser tab title in Odoo 17 Community?
Is overriding web.layout enough, or do I also need to override a part of the webclient that sets the dynamic title?
Is there an official or recommended method to remove/replace the “Odoo” prefix in the backend tab title?
Any guidance or working example for Odoo 17 Community will be greatly appreciated.
Thank you.