Skip to content

Commit 2475e0c

Browse files
committed
[FIX] Apply flush
1 parent bc76156 commit 2475e0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

partner_multi_relation/models/res_partner_relation_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def _end_active_relations(self, relations):
9595
relations_to_update += relation
9696
relations_to_delete.unlink()
9797
relations_to_update.write({"date_end": today})
98+
self.env.flush_all()
9899

99100
def check_existing(self, vals):
100101
"""Check wether records exist that do not fit new criteria."""

0 commit comments

Comments
 (0)