From cd39af9287e0b02426ae91eaa22825a05a266bd7 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 21 Oct 2024 10:32:25 +0200 Subject: [PATCH] [REF] web: fix a typo in search arch parser closes odoo/odoo#184440 Signed-off-by: Julien Mougenot (jum) --- addons/web/static/src/search/search_arch_parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/search/search_arch_parser.js b/addons/web/static/src/search/search_arch_parser.js index 07dfda2a1fd3c..d366f5834c4a1 100644 --- a/addons/web/static/src/search/search_arch_parser.js +++ b/addons/web/static/src/search/search_arch_parser.js @@ -17,7 +17,7 @@ const DEFAULT_VIEWS_WITH_SEARCH_PANEL = ["kanban", "list"]; * @param {string} context * @returns {string[]} */ -function getContextGroubBy(context) { +function getContextGroupBy(context) { try { return makeContext([context]).group_by?.split(":") || []; } catch { @@ -192,7 +192,7 @@ export class SearchArchParser { const preSearchItem = { type: "filter" }; if (node.hasAttribute("context")) { const context = node.getAttribute("context"); - const [fieldName, defaultInterval] = getContextGroubBy(context); + const [fieldName, defaultInterval] = getContextGroupBy(context); const groupByField = this.fields[fieldName]; if (groupByField) { preSearchItem.type = "groupBy";