[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:
parent
a7ea6c02ab
commit
c4d9dfd8a9
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue