[FIX] changes the hardcoded string 'undefined' into 'Undefined' in pivot table (addon web_graph)

bzr revid: ged@openerp.com-20140128151157-3opcfcockwrgr3kx
This commit is contained in:
Gery Debongnie 2014-01-28 16:11:57 +01:00
parent f27c1df4d2
commit 9344f2f851
1 changed files with 2 additions and 2 deletions

View File

@ -400,11 +400,11 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({
grouped_on = attrs.grouped_on ? this.raw_field(attrs.grouped_on) : false;
if (value === false) {
group.attributes.value = _t('undefined');
group.attributes.value = _t('Undefined');
} 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 = value_lookup ? value_lookup[0][1] : _t('Undefined');
} else if (value instanceof Array) {
group.attributes.value = value[1];
}