if (this.group) {
this.value = group.value;
this.title = group.value;
+ if (this.value instanceof Array) {
+ this.title = this.value[1];
+ this.value = this.value[0];
+ }
var field = this.view.fields_view.fields[this.view.group_by];
if (field) {
try {
- this.title = openerp.web.format_value(this.value, field, false);
+ this.title = openerp.web.format_value(group.value, field, false);
} catch(e) {}
- } else if (this.value instanceof Array) {
- this.title = this.value[1];
- this.value = this.value[0];
}
_.each(this.view.aggregates, function(value, key) {
self.aggregates[value] = group.aggregates[key];