From 20ee752c61ddf12497e5b0f48a263a5479dee36c Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 19 Aug 2021 15:03:33 +0000 Subject: [PATCH] [FIX] web: widget pie_chart supports timeRanges During the refactor of the comparison feature, the pie_chart widget was forgotten (commit: be5a51a345b8986da0e19627260f64f984e11ae9) Before this commit, the pie_chart widget did not support timeRanges any longer After this commit it does again. closes odoo/odoo#75878 X-original-commit: 4f64cd724ad2a58a35dadf382b10dab74e1c0559 Related: odoo/enterprise#20564 Signed-off-by: Mathieu Duckerts-Antoine Signed-off-by: Lucas Perais (lpe) --- addons/web/static/src/legacy/js/widgets/pie_chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/legacy/js/widgets/pie_chart.js b/addons/web/static/src/legacy/js/widgets/pie_chart.js index 44f107f896c..35ead6b4b38 100644 --- a/addons/web/static/src/legacy/js/widgets/pie_chart.js +++ b/addons/web/static/src/legacy/js/widgets/pie_chart.js @@ -52,7 +52,7 @@ var PieChart = Widget.extend({ context: pieChartContext, domain: domain, groupBy: [], - timeRanges: {}, + timeRanges: record.timeRanges || {}, }; this.viewInfo = {