KERNEL: fix import multi-level one2many

bzr revid: ced-69f85868730b467a6bbbd20253b3d668222442e4
This commit is contained in:
ced 2007-06-18 11:22:10 +00:00
parent 9f3c56f869
commit 2793e2cec6
1 changed files with 2 additions and 2 deletions

View File

@ -657,7 +657,7 @@ class orm(object):
#
# Import one2many fields
#
nbrmax = 0
nbrmax = 1
for field in todo:
newfd = self.pool.get(fields_def[field]['relation']).fields_get(cr, uid, context=context)
(newrow,max2,w2, translate2) = process_liness(self, datas, prefix+[field], newfd, position)
@ -686,7 +686,7 @@ class orm(object):
for i in range(max(nbrmax,1)):
#if datas:
datas.pop(0)
result = [row, nbrmax+1, warning, translate]
result = [row, nbrmax, warning, translate]
return result
fields_def = self.fields_get(cr, uid, context=context)