[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:
parent
abf17354f8
commit
4cb2dc6d71
|
@ -822,7 +822,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
|
||||||
return p || _t('Undefined');
|
return p || _t('Undefined');
|
||||||
}).join('/');
|
}).join('/');
|
||||||
if (dim_x === 0) {
|
if (dim_x === 0) {
|
||||||
title = self.measure_label;
|
title = self.measure_label || _t('Undefined');
|
||||||
}
|
}
|
||||||
return {x: title, y: self.pivot.get_total(row)[0]};
|
return {x: title, y: self.pivot.get_total(row)[0]};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue