[FIX] Can't move kanban card from one group to another in some cases

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

bzr revid: fme@openerp.com-20120222113718-ix9kb61ij8jg4tub
This commit is contained in:
Fabien Meghazi 2012-02-22 12:37:18 +01:00
parent 7ac41ee582
commit 6d743d7783
1 changed files with 5 additions and 4 deletions

View File

@ -276,14 +276,15 @@ openerp.web_kanban.KanbanGroup = openerp.web.OldWidget.extend({
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];