[FIX] many2many in kanban templates are mixed up in some cases

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

bzr revid: fme@openerp.com-20130213163618-sm1ces6h1wm7hsjn
This commit is contained in:
Fabien Meghazi 2013-02-13 17:36:18 +01:00
parent b409abe3ad
commit e72d321e01
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
switch (node.tag) {
case 'field':
if (this.fields_view.fields[node.attrs.name].type === 'many2many') {
this.many2manys.push(node.attrs.name);
if (_.indexOf(this.many2manys, node.attrs.name) < 0) {
this.many2manys.push(node.attrs.name);
}
node.tag = 'div';
node.attrs['class'] = (node.attrs['class'] || '') + ' oe_form_field oe_tags';
} else {