Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How Do I Change The OpenERP Page Title? [Closed]

Alex Malone
on 6/5/13, 8:02 AM 9,464 views

The Question has been closed

Sudhir Arya (SA)
on 06/05/2013 08:55:30

Hi Folks,

I am attempting to change the page titles that get displayed by OpenERP, i.e. the wording that gets displayed next to the favicon in internet browser tabs. In standard website development, this title is controlled by the <title></title> tags.

So far, I have only found one place where I can change this:

/web/addons/web/controlles/main.py line 541

    html_template = """
<html style="height: 100%%">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"/>
        <link rel="stylesheet" href="/web/static/src/css/full.css" />
        <script type="text/javascript">
            $(function() {
                var s = new openerp.init(%(modules)s);
        <!--[if lte IE 8]>
        <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
        <script>CFInstall.check({mode: "overlay"});</script>

Changing the title here from OpenERP to whatever I want works for the login screen, but once I access a proper page within the system it reverts to "[Page Title] - OpenERP".

I would like to know where the function is that sets this page title so I can change it to suit our needs. Does anyone know where this can be found?

Many thanks!



Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 6/5/13, 8:45 AM

There is one more file where you need to change title.

Chorme.js at this particular line you need to change.

document.title = title + sep + 'OpenERP';

Change OpenERP to anything you want.

Awesome, thank you very much Sudhir, that worked perfectly!

Alex Malone
on 6/5/13, 8:53 AM

Most welcome!!!

Sudhir Arya (SA)
on 6/5/13, 8:54 AM

I made the change, and noticed that it did not apply to the system. Then I re-started the system, and all the changes were applied. Thanks for info :).

Chicago La
on 10/25/13, 6:41 PM

login page is not changed ??

on 12/25/13, 7:50 AM

It seems to me a bad idea hacking into core code.

Francisco Luz
on 7/2/14, 1:45 AM

I have a not hardcoded solution: https://apps.odoo.com/apps/modules/8.0/web_debranding/ It replace title both in html template and in javascript (via overwritting get_title_part function of WebClient object)

Ivan Yelizariev
on 7/21/15, 10:32 AM
Anton Chepurov
On 5/28/14, 7:04 AM

A somewhat cleaner way is to overrider the set_title function inside your module in your own js file, and not to change the chrome.js:

openerp.my_module = function(instance) {

        set_title: function(title) {
            title = _.str.clean(title);
            var sep = _.isEmpty(title) ? '' : ' - ';
            document.title = title + sep + 'My Brand or What Have I';


Pay attention to the 'openerp.my_module' part: my_module should be the exact name of your module.

Same holds to changing main.py. Better add a Python file to your module with the following code inside:

from openerp.addons.web.controllers import main
main.html_template = main.html_template.replace('<title>OpenERP</title>', '<title>My Brand or What Have I</title>')


This solution should be the accepted one. It gracefully allows you to do custom modifications without having to hack core code.

Francisco Luz
on 7/2/14, 1:56 AM
On 6/10/14, 11:17 PM

anton chepurov 's answer helps me a lot.


On 6/10/14, 11:17 PM

anton chepurov 's answer help me a lot.


On 6/10/14, 11:17 PM

anton chepurov 's answer helps me a lot.


About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 6/5/13, 8:02 AM
Seen: 9464 times
Last updated: 3/16/15, 8:10 AM