Odoo Help


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

Alex Malone
on 6/5/13, 8:02 AM 12,357 views

The Question has been closed

Sudhir Arya (ERP Harbor Consulting Services)
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 (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
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 (ERP Harbor Consulting Services)
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 Elizaryev
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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


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