mirror of https://github.com/OCA/web.git
parent
26c0f60f17
commit
21606d01c8
|
@ -25,7 +25,7 @@ openerp.web_switch_company_warning = function (instance) {
|
||||||
if (msg.data.type !== 'newCtx')
|
if (msg.data.type !== 'newCtx')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(msg.data.newCtx != signature(self.session)) {
|
if(msg.data.newCtx != self.signature(self.session)) {
|
||||||
self.$el.show();
|
self.$el.show();
|
||||||
} else {
|
} else {
|
||||||
self.$el.hide();
|
self.$el.hide();
|
||||||
|
@ -33,11 +33,10 @@ openerp.web_switch_company_warning = function (instance) {
|
||||||
});
|
});
|
||||||
|
|
||||||
w.port.start();
|
w.port.start();
|
||||||
w.port.postMessage(signature(this.session));
|
w.port.postMessage(self.signature(this.session));
|
||||||
|
},
|
||||||
function signature(session) {
|
signature: function (session) {
|
||||||
return [session.db, session.uid, session.company_id].join();
|
return [session.db, session.uid, session.company_id].join();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue