[FIX] import/export
bzr revid: fp@tinyerp.com-20111228194506-nag2kqk1w1uyk43p
This commit is contained in:
parent
1c74a545c0
commit
ae92ec17ea
|
@ -1106,7 +1106,7 @@ class BaseModel(object):
|
|||
'res_id': r['id'],
|
||||
'module': '__export__',
|
||||
})
|
||||
r = n
|
||||
r = '__export__.'+n
|
||||
else:
|
||||
r = r[f[i]]
|
||||
# To display external name of selection field when its exported
|
||||
|
@ -1330,7 +1330,7 @@ class BaseModel(object):
|
|||
newfd = relation_obj.fields_get( cr, uid, context=context )
|
||||
pos = position
|
||||
|
||||
res = many_ids(line[i], relation, current_module, mode)
|
||||
res = []
|
||||
|
||||
first = 0
|
||||
while pos < len(datas):
|
||||
|
@ -1342,9 +1342,6 @@ class BaseModel(object):
|
|||
warning += w2
|
||||
first += 1
|
||||
|
||||
if data_res_id2:
|
||||
res.append((4, data_res_id2))
|
||||
|
||||
if (not newrow) or not reduce(lambda x, y: x or y, newrow.values(), 0):
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue