diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-06-08 11:50:24 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-07-13 12:55:07 +0000 |
| commit | af85bb5e13b9c97d022a721bd782a37d718e4496 (patch) | |
| tree | 731c1983542ec3fc07b3b70832659d5ad803252d /addons/mail/views | |
| parent | ce3c7d8714c330b8344ffb76245c364045cbf62f (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/views')
| -rw-r--r-- | addons/mail/views/assets.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/mail/views/assets.xml b/addons/mail/views/assets.xml index 1abab3c4fd8..8817822ef48 100644 --- a/addons/mail/views/assets.xml +++ b/addons/mail/views/assets.xml @@ -108,7 +108,6 @@ <script type="text/javascript" src="/mail/static/src/components/thread_textual_typing_status/thread_textual_typing_status.js"></script> <script type="text/javascript" src="/mail/static/src/components/thread_typing_icon/thread_typing_icon.js"></script> <script type="text/javascript" src="/mail/static/src/components/thread_viewer/thread_viewer.js"></script> - <script type="text/javascript" src="/mail/static/src/env/env.js"></script> <script type="text/javascript" src="/mail/static/src/model/model_core.js"></script> <script type="text/javascript" src="/mail/static/src/model/model_errors.js"></script> <script type="text/javascript" src="/mail/static/src/model/model_field.js"></script> @@ -213,6 +212,12 @@ </xpath> </template> + <template id="assets_backend_prod_only" name="mail prod only assets" inherit_id="web.assets_backend_prod_only"> + <xpath expr="." position="inside"> + <script type="text/javascript" src="/mail/static/src/js/main.js"></script> + </xpath> + </template> + <template id="tests_assets" name="mail_tests_assets" inherit_id="web.tests_assets"> <xpath expr="." position="inside"> <script type="text/javascript" src="/mail/static/src/env/test_env.js"></script> |
