From 33e0acb2acc41ada3351522ba7dfdd149d354d11 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 7 Jun 2019 09:41:07 +0000 Subject: [PATCH] [IMP] base, http, web: do not start tests in debug mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/stock/static/tests/tours/route.js | 2 +- addons/web/views/webclient_templates.xml | 2 +- odoo/addons/base/models/ir_ui_view.py | 1 + odoo/addons/test_new_api/static/tests/tours/x2many.js | 2 +- odoo/http.py | 4 +--- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/stock/static/tests/tours/route.js b/addons/stock/static/tests/tours/route.js index 4647f41a36f..9c29d3f6ada 100644 --- a/addons/stock/static/tests/tours/route.js +++ b/addons/stock/static/tests/tours/route.js @@ -5,7 +5,7 @@ var tour = require('web_tour.tour'); tour.register('stock', { test: true, - url: '/web#action=stock.action_stock_config_settings', + url: '/web?debug=1#action=stock.action_stock_config_settings', }, [ { diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 5bc34aad93f..aa3f67af07d 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -394,7 +394,7 @@