From 86f0c4365e50914c9b5a140abd32852b0b70edf6 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sun, 13 Apr 2025 12:48:18 -0300 Subject: [PATCH] feat(transactions): add transaction owner to recurring and installments --- app/apps/transactions/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/apps/transactions/models.py b/app/apps/transactions/models.py index 8f9c04b..2b45b86 100644 --- a/app/apps/transactions/models.py +++ b/app/apps/transactions/models.py @@ -574,6 +574,7 @@ class InstallmentPlan(models.Model): installment_plan=self, installment_id=i, notes=self.notes if self.add_notes_to_transaction else "", + owner=self.account.owner, ) new_transaction.tags.set(self.tags.all()) new_transaction.entities.set(self.entities.all()) @@ -640,6 +641,7 @@ class InstallmentPlan(models.Model): installment_plan=self, installment_id=i, notes=self.notes if self.add_notes_to_transaction else "", + owner=self.account.owner, ) new_transaction.tags.set(self.tags.all()) new_transaction.entities.set(self.entities.all()) @@ -775,6 +777,7 @@ class RecurringTransaction(models.Model): is_paid=False, recurring_transaction=self, notes=self.notes if self.add_notes_to_transaction else "", + owner=self.account.owner, ) if self.tags.exists(): created_transaction.tags.set(self.tags.all())