Fix import_data to use id/False with many2one for issue1119

This commit is contained in:
Cédric Krier committed 2009-07-28 19:23:30 +02:00
1 parent c67221750e
commit 754ec19e3f
1 file changed
+3
+3
View File
@@ -618,6 +618,9 @@ class ModelStorage(Model):
logger.warning(
'Relation not found: ' + line[i] + \
' on ' + relation + ' !\n')
res = False
else:
res = res[0]
elif fields_def[field[len(prefix)]]['type'] == 'many2many':
res = []
if line[i]: