[FIX] m2m command in import

command helpers create a single command, still need the list around commands

and the tests would have caught it, if I'd run them...

bzr revid: xmo@openerp.com-20121009070934-7i1hxuzumdu8x1jy
This commit is contained in:
Xavier Morel 2012-10-09 09:09:34 +02:00
parent e8af13f0e8
commit 35c0e73eb4
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class ir_fields_converter(orm.Model):
cr, uid, model, column, subfield, reference, context=context)
ids.append(id)
warnings.extend(ws)
return REPLACE_WITH(ids), warnings
return [REPLACE_WITH(ids)], warnings
def _str_to_one2many(self, cr, uid, model, column, records, context=None):
commands = []