summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph/graph_model.js
diff options
context:
space:
mode:
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.js5
1 files changed, 5 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 e1411324c77..6ee4d06651e 100644
--- a/addons/web/static/src/js/views/graph/graph_model.js
+++ b/addons/web/static/src/js/views/graph/graph_model.js
@@ -72,6 +72,7 @@ return AbstractModel.extend({
origins: [],
stacked: params.stacked,
timeRanges: params.timeRanges,
+ orderBy: params.orderBy
});
this._computeDerivedParams();
@@ -126,6 +127,10 @@ return AbstractModel.extend({
this.chart.stacked = params.stacked;
return Promise.resolve();
}
+ if ('orderBy' in params) {
+ this.chart.orderBy = params.orderBy;
+ return Promise.resolve();
+ }
return this._loadGraph();
},