diff options
| author | Dhruv Patel <dhp@odoo.com> | 2020-03-16 04:55:53 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-03-31 19:15:10 +0000 |
| commit | ae610d0e205da921111b5a320dec833d84b05056 (patch) | |
| tree | cee9944daad0d58986d75823ac5562768d1f264d /addons/web/static/src/js/views/graph/graph_model.js | |
| parent | 2516c0a212a7181fb8f54ce1bd5b46b30ffd8edf (diff) | |
[IMP] web: graph: drill down to records in bar/pie charts
After this commit, in the graph view, when the user clicks on parts
of the bar and pie charts, it opens the list view of the concerned
records (like what was already done in the pivot view).
This is the default behavior, but it can be deactivated by setting
the attribute 'disable_linking' to true in the view.
Task 2198461
closes odoo/odoo#47796
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_model.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_model.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_model.js b/addons/web/static/src/js/views/graph/graph_model.js index 21614493e3c..e1411324c77 100644 --- a/addons/web/static/src/js/views/graph/graph_model.js +++ b/addons/web/static/src/js/views/graph/graph_model.js @@ -244,6 +244,7 @@ return AbstractModel.extend({ self.chart.dataPoints.push({ resId: dataPt[self.chart.groupBy[0]] instanceof Array ? dataPt[self.chart.groupBy[0]][0] : -1, count: count, + domain: dataPt.__domain, value: value, labels: labels, originIndex: originIndex, |
