diff --git a/trytond/CHANGELOG b/trytond/CHANGELOG index c02ef3e535..faac7bef04 100644 --- a/trytond/CHANGELOG +++ b/trytond/CHANGELOG @@ -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 diff --git a/trytond/trytond/model/modelstorage.py b/trytond/trytond/model/modelstorage.py index 1844c825a1..75555837f5 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -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'])