[FIX] web_graph: no label for ungrouped pie chart

When a pie chart has no grouping selected, the label was "undefined" (the
javascript variable). Replace by the already translated string "Undefined".

Fixes #13288
This commit is contained in:
Martin Trigaux 2016-08-25 10:38:12 +02:00
parent abf17354f8
commit 4cb2dc6d71
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
return p || _t('Undefined');
}).join('/');
if (dim_x === 0) {
title = self.measure_label;
title = self.measure_label || _t('Undefined');
}
return {x: title, y: self.pivot.get_total(row)[0]};
});