[FIX](Maintenance) Exportation fixed for o2m and m2m
bzr revid: ach@tinyerp.com-20101116092650-cdzcqn5tc7hq5l3m
This commit is contained in:
parent
d3f5955317
commit
602815a5ad
|
@ -556,8 +556,8 @@ class orm_template(object):
|
|||
|
||||
lines = []
|
||||
data = map(lambda x: '', range(len(fields)))
|
||||
done = []
|
||||
for fpos in range(len(fields)):
|
||||
done = []
|
||||
f = fields[fpos]
|
||||
if f:
|
||||
r = row
|
||||
|
@ -602,7 +602,8 @@ class orm_template(object):
|
|||
fields2 = map(lambda x: (x[:i+1]==f[:i+1] and x[i+1:]) \
|
||||
or [], fields)
|
||||
if fields2 in done:
|
||||
break
|
||||
if [x for x in fields2 if x]:
|
||||
break
|
||||
done.append(fields2)
|
||||
for row2 in r:
|
||||
lines2 = self.__export_row(cr, uid, row2, fields2,
|
||||
|
|
Loading…
Reference in New Issue