From 1f38bef4371e7dbf4ad506d3d8896d986367bf90 Mon Sep 17 00:00:00 2001 From: KKamaa Date: Tue, 27 Dec 2022 09:08:29 +0300 Subject: [PATCH] [FIX] web_timeline group_bys default array if undefined --- web_timeline/static/src/js/timeline_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_timeline/static/src/js/timeline_controller.js b/web_timeline/static/src/js/timeline_controller.js index 3831ed5c3..5ad5b1184 100644 --- a/web_timeline/static/src/js/timeline_controller.js +++ b/web_timeline/static/src/js/timeline_controller.js @@ -49,7 +49,7 @@ odoo.define("web_timeline.TimelineController", function (require) { this.last_domains = domains; this.last_contexts = contexts; // Select the group by - let n_group_bys = group_bys; + let n_group_bys = group_bys || []; if (!n_group_bys.length && this.renderer.arch.attrs.default_group_by) { n_group_bys = this.renderer.arch.attrs.default_group_by.split(","); }