From b29554bb7181b7f582e3b84027e1cf48de0ca077 Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Sun, 2 Jun 2019 17:00:23 +0200 Subject: [PATCH] [FIX] recompute folio amount to modify payment --- hotel/models/inherited_account_payment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hotel/models/inherited_account_payment.py b/hotel/models/inherited_account_payment.py index fe59e4932..5bf5c1953 100644 --- a/hotel/models/inherited_account_payment.py +++ b/hotel/models/inherited_account_payment.py @@ -62,6 +62,7 @@ class AccountPayment(models.Model): 'state': 'draft'} self.update(vals) self.with_context({'ignore_notification_post': True}).post() + self._compute_folio_amount() if self.folio_id: msg = _("Payment %s modified: \n") % (self.communication) if self.save_amount and self.save_amount != self.amount: