Renamed the templates of the transactions in the accounting application.

This commit is contained in:
2020-08-17 20:51:47 +08:00
parent 5e321ad420
commit c3fc2a5093
9 changed files with 7 additions and 6 deletions

View File

@ -220,7 +220,8 @@ class Transaction(DirtyFieldsMixin, models.Model):
self.created_by = self.current_user
if self.current_user is not None:
self.updated_by = self.current_user
to_save = [x for x in self.records if x.is_dirty()]
to_save = [x for x in self.records
if x.is_dirty(check_relationship=True)]
for record in to_save:
if record.pk is None:
record.pk = new_pk(Record)