summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-09-11 17:00:45 +0200
committerDenis Ledoux <dle@odoo.com>2014-09-11 17:00:45 +0200
commit3911468d72b6cd9214e1d5948878620d3969b706 (patch)
tree56191c7cdac8f503697f40644a75fe212cb7b801 /addons/web_graph
parent2684b7de4c883ff2ed05f60b083e4a539e08d5db (diff)
[FIX] web_graph: pivot_table, use _.isEmpty to check if value_lookup is False
Diffstat (limited to 'addons/web_graph')
-rw-r--r--addons/web_graph/static/src/js/pivot_table.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/pivot_table.js b/addons/web_graph/static/src/js/pivot_table.js
index 770519e52c2..7de629a95c2 100644
--- a/addons/web_graph/static/src/js/pivot_table.js
+++ b/addons/web_graph/static/src/js/pivot_table.js
@@ -404,7 +404,7 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({
} else if (grouped_on && this.fields[grouped_on].type === 'selection') {
var selection = this.fields[grouped_on].selection,
value_lookup = _.where(selection, {0:value});
- group.attributes.value = value_lookup ? value_lookup[0][1] : _t('Undefined');
+ group.attributes.value = !_.isEmpty(value_lookup) ? value_lookup[0][1] : _t('Undefined');
} else if (value instanceof Array) {
group.attributes.value = value[1];
}