Fix import_data to use id/False with many2one for issue1119
This commit is contained in:
1 parent
c67221750e
commit
754ec19e3f
1 file changed
+3
@@ -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]:
|
||||
|
||||
Reference in new issue
Block a user