|
|
@ -8,7 +8,7 @@ odoo.define('web_switch_company_warning.widget', function (require) { |
|
|
|
// changed in another tab or window (in the same browser)
|
|
|
|
|
|
|
|
if (!window.SharedWorker) { |
|
|
|
//not supported
|
|
|
|
// Not supported
|
|
|
|
return; |
|
|
|
} |
|
|
|
var SwitchCompanyWarningWidget = Widget.extend({ |
|
|
@ -32,7 +32,7 @@ odoo.define('web_switch_company_warning.widget', function (require) { |
|
|
|
}, |
|
|
|
generateSignature: function () { |
|
|
|
return [session.company_id, session.db].join(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
UserMenu.include({ |
|
|
@ -40,7 +40,7 @@ odoo.define('web_switch_company_warning.widget', function (require) { |
|
|
|
this._super(parent); |
|
|
|
var switchCompanyWarning = new SwitchCompanyWarningWidget(); |
|
|
|
switchCompanyWarning.insertAfter('.o_main_navbar'); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|