summaryrefslogtreecommitdiff
path: root/odoo/http.py
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-06-07 09:41:07 +0000
committerRomain Derie <rde@odoo.com>2019-06-11 18:08:31 +0000
commit33e0acb2acc41ada3351522ba7dfdd149d354d11 (patch)
tree636af55c03f4e5f47a301308ce74759823226863 /odoo/http.py
parent57d0ef5b0d7b2962468ccd5b978dc7353a64d494 (diff)
[IMP] base, http, web: do not start tests in debug mode
It seems to be a better solution to keep starting tests without being in debug mode to avoid having new fields and menus appearing. This commit simply drop the debug mode in test mode and retrieve the test assets by checking if test mode is enabled directly. closes odoo/odoo#34012 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'odoo/http.py')
-rw-r--r--odoo/http.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/odoo/http.py b/odoo/http.py
index d4b1aef8a1a..34af5c78c53 100644
--- a/odoo/http.py
+++ b/odoo/http.py
@@ -1051,9 +1051,7 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
self.setdefault("login", None)
self.setdefault("session_token", None)
self.setdefault("context", {})
- # Force tests debug mode when test mode enabled to load 'assets_tests'
- test_mode = odoo.tools.config['test_enable'] or odoo.tools.config['test_file']
- self.setdefault("debug", 'tests' if test_mode else '')
+ self.setdefault("debug", '')
def get_context(self):
"""