[FIX] Use formatted value in kanbans group by

lp bug: https://launchpad.net/bugs/927698 fixed

bzr revid: fme@openerp.com-20120213172038-o0gxr5avtlc2kfbc
This commit is contained in:
Fabien Meghazi 2012-02-13 18:20:38 +01:00
parent a7ea6c02ab
commit c4d9dfd8a9
1 changed files with 6 additions and 1 deletions

View File

@ -276,7 +276,12 @@ openerp.web_kanban.KanbanGroup = openerp.web.OldWidget.extend({
if (this.group) {
this.value = group.value;
this.title = group.value;
if (this.value instanceof Array) {
var field = this.view.fields_view.fields[this.view.group_by];
if (field) {
try {
this.title = openerp.web.format_value(this.value, field, false);
} catch(e) {}
} else if (this.value instanceof Array) {
this.title = this.value[1];
this.value = this.value[0];
}