Skip to Content
Menu
This question has been flagged
2 Replies
3076 Views

Hi,

We have a number of databases running on our odoo 10 instance and users need to know which one they are logged into  at all times. 

in previous versions this was possible with changes to web/addons/web/static/src/js/chrome.js:  however as the chrome.js doesnt exist (at least on the Windows installation) in odoo 10 how can I confire this ?

Thanks in advance for the help

Richard


Avatar
Discard
Best Answer

Hi Richard,

Go to web/static/src/js/widgets/user_menu.js#L37 and move the code outside the if condition which looks like as follow:

if (session.debug) {
    topbar_name = _str.sprintf............ # Move this code outside the if condition
}

Once you do this, you will be able to see the database name in every database.

Sudhir Arya
ERP Harbor Consulting Services
Odoo Customization, Implementation, Odoo Consultancy
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com


Avatar
Discard
Author Best Answer

Thanks Sudhir,

That worked like a charm :)

Additionally I changed the max-width setting to 250px for the navbar in the webclient_extra.less so that the full Database name was visable.

Now I can not only see it but also read it at last :)

Cheers for the help

Richard



Avatar
Discard