From 5469b4709b3d24b2167ec7b2e17f7613951dc516 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 3 Jan 2013 15:19:45 +0100 Subject: [PATCH] [FIX] exception when logging in the web client and the server was launched using --no-database-list lp bug: https://launchpad.net/bugs/1094179 fixed bzr revid: nicolas.vanhoren@openerp.com-20130103141945-11afh6khtpa7tapm --- addons/web/static/src/js/chrome.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index ba708b4a925..26d30ea98a2 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1033,13 +1033,8 @@ instance.web.UserMenu = instance.web.Widget.extend({ if(res.company_id[0] > 1) topbar_name = _.str.sprintf("%s (%s)", topbar_name, res.company_id[1]); self.$el.find('.oe_topbar_name').text(topbar_name); - if(!instance.session.debug) { - self.rpc("/web/database/get_list", {}).done( function(result) { - if (result.length > 1) { - topbar_name = _.str.sprintf("%s (%s)", topbar_name, instance.session.db); - } - self.$el.find('.oe_topbar_name').text(topbar_name); - }); + if (!instance.session.debug) { + topbar_name = _.str.sprintf("%s (%s)", topbar_name, instance.session.db); } var avatar_src = self.session.url('/web/binary/image', {model:'res.users', field: 'image_small', id: self.session.uid}); $avatar.attr('src', avatar_src);