[FIX] recompute folio amount to modify payment

This commit is contained in:
Dario Lodeiros
2019-06-02 17:00:23 +02:00
parent fe1443219e
commit b29554bb71

View File

@@ -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: