diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-06-13 13:32:24 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-06-13 13:32:24 +0200 |
| commit | cedae1fba7d6a1431ed7ef7515f1a4a5626e884b (patch) | |
| tree | d36677db9cc8647e4b186d2cc4be49c22d82a4a8 /addons/web_graph/static/src/js | |
| parent | 0f01df42eaf662987abe5f069ca8df2e2caf8e37 (diff) | |
[FIX] removes non stored fields from measures
Non stored functional fields cannot be grouped by read_group, so it is
useless, and even harmful, to display them in the measure list (in
graph view).
Diffstat (limited to 'addons/web_graph/static/src/js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_widget.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index bbf27daffb0..59f0af95882 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -114,7 +114,9 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ // Extracts the integer/float fields which are not 'id' get_measures: function() { return _.compact(_.map(this.fields, function (f, id) { - if (((f.type === 'integer') || (f.type === 'float')) && (id !== 'id')) { + if (((f.type === 'integer') || (f.type === 'float')) && + (id !== 'id') && + (f.store !== false)) { return {field:id, type: f.type, string: f.string}; } })); |
