Notes are force-updated when a transaction is saved

This commit is contained in:
Yohann D'ANELLO 2020-08-18 11:46:35 +02:00
parent e974eaa1fe
commit 6217f35f67
1 changed files with 2 additions and 0 deletions

View File

@ -238,8 +238,10 @@ class Transaction(PolymorphicModel):
# Save notes # Save notes
self.source.balance += diff_source self.source.balance += diff_source
self.source._force_save = True
self.source.save() self.source.save()
self.destination.balance += diff_dest self.destination.balance += diff_dest
self.destination._force_save = True
self.destination.save() self.destination.save()
def delete(self, **kwargs): def delete(self, **kwargs):