|
|
@ -25,7 +25,7 @@ openerp.web_switch_company_warning = function (instance) { |
|
|
|
if (msg.data.type !== 'newCtx') |
|
|
|
return; |
|
|
|
|
|
|
|
if(msg.data.newCtx != signature(self.session)) { |
|
|
|
if(msg.data.newCtx != self.signature(self.session)) { |
|
|
|
self.$el.show(); |
|
|
|
} else { |
|
|
|
self.$el.hide(); |
|
|
@ -33,12 +33,11 @@ openerp.web_switch_company_warning = function (instance) { |
|
|
|
}); |
|
|
|
|
|
|
|
w.port.start(); |
|
|
|
w.port.postMessage(signature(this.session)); |
|
|
|
|
|
|
|
function signature(session) { |
|
|
|
w.port.postMessage(self.signature(this.session)); |
|
|
|
}, |
|
|
|
signature: function (session) { |
|
|
|
return [session.db, session.uid, session.company_id].join(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
instance.web.UserMenu = instance.web.UserMenu.extend({ |
|
|
|