Skip to content
Snippets Groups Projects
Commit 47647c6c authored by Olivier Dony's avatar Olivier Dony
Browse files

Merge pull request #521 from odoo-dev/master-graphview-measures-fix-ged

[FIX] graph/pivot tables: remove non stored fields from available measures
parents 5e7485ab cedae1fb
No related branches found
No related tags found
No related merge requests found
......@@ -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};
}
}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment