summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-06-08 11:50:24 +0000
committerAaron Bohy <aab@odoo.com>2020-07-13 12:55:07 +0000
commitaf85bb5e13b9c97d022a721bd782a37d718e4496 (patch)
tree731c1983542ec3fc07b3b70832659d5ad803252d /addons/mail/static/src
parentce3c7d8714c330b8344ffb76245c364045cbf62f (diff)
[IMP] web,*: do not deploy services in tests
*mail,point_of_sale,web_editor,website In the tests, required services are deployed for each test independently. There is no need to have, in additon, all services deployed globally. Worse, it could conflict and lead to unexpected results. This commit ensures services are no longer deployed globally in tests. It turns the module 'web.env' into a declarative module with no side-effect, by moving the service deployment to main.js, which isn't added to the tests page. Task 2287397 closes odoo/odoo#53817 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/main.js (renamed from addons/mail/static/src/env/env.js)2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/env/env.js b/addons/mail/static/src/js/main.js
index ea760ba6e11..95c8c4153b1 100644
--- a/addons/mail/static/src/env/env.js
+++ b/addons/mail/static/src/js/main.js
@@ -1,4 +1,4 @@
-odoo.define('mail/static/src/env/env.js', function (require) {
+odoo.define('mail/static/src/js/main.js', function (require) {
'use strict';
const ModelManager = require('mail/static/src/model/model_manager.js');