diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-10-02 11:21:30 +0200 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-10-02 13:04:34 +0200 |
| commit | 64d7da419885301fa2c1b26bf3cde286052cefba (patch) | |
| tree | 112a8054cfe2f0c2e7cd565705ce1a874b7e870e /addons/web/static/src/js/views/graph/graph_renderer.js | |
| parent | 16469ec95be444eda2ace032a938e4bc9d960236 (diff) | |
[FIX] web: fix update problems in graph view
The graph view was not updated correctly with respect to
time range menu data. We fix that problem in this commit.
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_renderer.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_renderer.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js index c2bb79c491f..470d064ef68 100644 --- a/addons/web/static/src/js/views/graph/graph_renderer.js +++ b/addons/web/static/src/js/views/graph/graph_renderer.js @@ -68,6 +68,16 @@ return AbstractRenderer.extend({ this._super.apply(this, arguments); this.isInDOM = false; }, + /** + * @override + * @param {Object} state + * @param {Object} params + */ + updateState: function (state, params) { + this.isComparison = !!state.comparisonData; + this.stacked = this.isComparison ? false : params.stacked; + return this._super.apply(this, arguments); + }, //-------------------------------------------------------------------------- // Private |
