[FIX] web: widget pie_chart supports timeRanges

During the refactor of the comparison feature, the pie_chart widget was forgotten
(commit: be5a51a345)
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 <Polymorphe57@users.noreply.github.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
Lucas Perais (lpe)
2021-09-02 08:39:18 +00:00
parent d1ca1040b7
commit 20ee752c61
@@ -52,7 +52,7 @@ var PieChart = Widget.extend({
context: pieChartContext,
domain: domain,
groupBy: [],
timeRanges: {},
timeRanges: record.timeRanges || {},
};
this.viewInfo = {