diff --git a/web_switch_company_warning/readme.rst b/web_switch_company_warning/readme.rst index 201e3baf..bdf0b58a 100644 --- a/web_switch_company_warning/readme.rst +++ b/web_switch_company_warning/readme.rst @@ -23,12 +23,12 @@ Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. +web/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here `_. +web/issues/new?body=module:%20 +web_switch_company_warning%0Aversion:%20 +0.1%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits diff --git a/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js b/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js index 680592d5..d4b4fbe4 100644 --- a/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js +++ b/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js @@ -1,3 +1,4 @@ +"use strict"; //Show a big banner in the top of the page if the company has been //changed in another tab or window (in the same browser) @@ -14,7 +15,7 @@ addEventListener("connect", function(ee) { if (lastCtx && newCtx != lastCtx) { con.map(function (eport) { - eport.postMessage({ type: 'newCtx', "newCtx": newCtx, "lastCtx": lastCtx}); + eport.postMessage({ type: "newCtx", "newCtx": newCtx, "lastCtx": lastCtx}); }); } lastCtx = newCtx; diff --git a/web_switch_company_warning/static/src/js/switch_company_warning.js b/web_switch_company_warning/static/src/js/switch_company_warning.js index 31e1a7ee..a49040fc 100644 --- a/web_switch_company_warning/static/src/js/switch_company_warning.js +++ b/web_switch_company_warning/static/src/js/switch_company_warning.js @@ -1,3 +1,5 @@ +'use strict'; + openerp.web_switch_company_warning = function (instance) { //Show a big banner in the top of the page if the company has been