From 32ab3422f013a08809c4c51ff895671ff98f0e62 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 27 Mar 2019 15:36:41 +0000 Subject: [PATCH] [FIX] web: tests: correct pass `hasSelectors` The attribute is true by default, but when it is set to `false` in a test, it was not correctly passed in the view. Note that it has no impact currently in the tests. closes odoo/odoo#32175 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/tests/helpers/test_utils_create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/tests/helpers/test_utils_create.js b/addons/web/static/tests/helpers/test_utils_create.js index 7e4de1060bc..097d46e93f7 100644 --- a/addons/web/static/tests/helpers/test_utils_create.js +++ b/addons/web/static/tests/helpers/test_utils_create.js @@ -142,7 +142,7 @@ async function createView(params) { this.loadParams.groupedBy = params.groupBy || viewOptions.groupBy || []; }, }); - if (params.hasSelectors) { + if ('hasSelectors' in params) { viewOptions.hasSelectors = params.hasSelectors; }