Support import of one2many as list of name

This commit is contained in:
Cédric Krier
2025-05-21 17:03:21 +02:00
parent eab2b6deb0
commit d769ff12c3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Support import of one2many as list of name
* Support export of xxx2many fields as list of name
* Set Message-Id to email sent
* Add pair/unpair in tools
+1 -1
View File
@@ -1229,7 +1229,7 @@ class ModelStorage(Model):
res = get_many2one(line, i, klass.__name__)
elif field_type == 'many2one':
res = get_many2one(line, i, this_field_def['relation'])
elif field_type == 'many2many':
elif field_type in {'many2many', 'one2many'}:
many2many.add(field_name)
res = get_many2many(
line, i, this_field_def['relation'])