diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 85463e6c371..468eb33fbab 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -123,19 +123,17 @@ }); } - if (odoo.debug) { - if (!(deps instanceof Array)) { - throw new Error('Dependencies should be defined by an array', deps); - } - if (typeof factory !== 'function') { - throw new Error('Factory should be defined by a function', factory); - } - if (typeof name !== 'string') { - throw new Error("Invalid name definition (should be a string", name); - } - if (name in factories) { - throw new Error("Service " + name + " already defined"); - } + if (!(deps instanceof Array)) { + throw new Error('Dependencies should be defined by an array', deps); + } + if (typeof factory !== 'function') { + throw new Error('Factory should be defined by a function', factory); + } + if (typeof name !== 'string') { + throw new Error("Invalid name definition (should be a string", name); + } + if (name in factories) { + throw new Error("Service " + name + " already defined"); } factory.deps = deps; diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 1e2e2fc9f91..7ee7c5877d7 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -640,7 +640,6 @@ -