[FIX](Maintenance) Exportation fixed for o2m and m2m

bzr revid: ach@tinyerp.com-20101116092650-cdzcqn5tc7hq5l3m
This commit is contained in:
Anup (OpenERP) 2010-11-16 14:56:50 +05:30
parent d3f5955317
commit 602815a5ad
1 changed files with 3 additions and 2 deletions

View File

@ -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,