From ae2dbc60c5c4e23a840f79071d81f2d4c0b3fa21 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Thu, 13 Dec 2018 19:32:55 +0000 Subject: [FIX] web: handle `context` in ControlPanel The `context` key wasn't correctly taken into account when computing the search query for `filter``tags. It is now correctly handled. Task 1917628 closes odoo/odoo#29529 --- addons/web/static/tests/views/control_panel_tests.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/web/static/tests/views/control_panel_tests.js') diff --git a/addons/web/static/tests/views/control_panel_tests.js b/addons/web/static/tests/views/control_panel_tests.js index 08cc1391719..10b1bb79879 100644 --- a/addons/web/static/tests/views/control_panel_tests.js +++ b/addons/web/static/tests/views/control_panel_tests.js @@ -120,6 +120,7 @@ QUnit.module('Views', { assert.deepEqual( controlPanelFactory.loadParams.groups, [[{ + context: {}, description: "Hello", groupNumber: 2, domain: "[]", @@ -198,6 +199,7 @@ QUnit.module('Views', { controlPanelFactory.loadParams.groups, [[ { + "context": {}, "description": "Hello One", "domain": "[]", "groupNumber": 2, @@ -205,6 +207,7 @@ QUnit.module('Views', { "type": "filter" }, { + "context": {}, "description": "Hello Two", "domain": "[('bar', '=', 3)]", "groupNumber": 2, @@ -233,6 +236,7 @@ QUnit.module('Views', { [ [ { + context: {}, description: "Hello One", domain: "[]", groupNumber: 2, @@ -242,6 +246,7 @@ QUnit.module('Views', { ], [ { + context: {}, description: "Hello Two", domain: "[('bar', '=', 3)]", groupNumber: 4, @@ -267,6 +272,7 @@ QUnit.module('Views', { [ [ { + context: {}, description: "Hello", domain: "[]", groupNumber: 2, -- cgit v1.2.3