Skip to content

Commit

Permalink
[FIX] Apply flush
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-dmoreno committed Dec 17, 2024
1 parent bc76156 commit 2475e0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions partner_multi_relation/models/res_partner_relation_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _end_active_relations(self, relations):
relations_to_update += relation
relations_to_delete.unlink()
relations_to_update.write({"date_end": today})
self.env.flush_all()

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

0 comments on commit 2475e0c

Please sign in to comment.