KERNEL: fix import multi-level one2many
bzr revid: ced-69f85868730b467a6bbbd20253b3d668222442e4
This commit is contained in:
parent
9f3c56f869
commit
2793e2cec6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue