Mark as modified when default is a list of ids

Otherwise they are not sent to the server because only modified record are
sent since issue6754.

issue9479
review308441002
This commit is contained in:
Cédric Krier committed 2020-10-28 23:56:28 +01:00
1 parent 9e0d14845e
commit 555ee3088d
1 file changed
+1 -1
+1 -1
View File
@@ -684,7 +684,7 @@ class O2MField(Field):
for old_record in group:
if old_record.id not in value:
group.remove(old_record, remove=True, signal=False)
group.load(value, modified=modified)
group.load(value, modified=modified or default)
else:
for vals in value:
new_record = record.value[self.name].new(default=False)