[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:
parent
b409abe3ad
commit
e72d321e01
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue