mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] recompute folio amount to modify payment
This commit is contained in:
@@ -62,6 +62,7 @@ class AccountPayment(models.Model):
|
|||||||
'state': 'draft'}
|
'state': 'draft'}
|
||||||
self.update(vals)
|
self.update(vals)
|
||||||
self.with_context({'ignore_notification_post': True}).post()
|
self.with_context({'ignore_notification_post': True}).post()
|
||||||
|
self._compute_folio_amount()
|
||||||
if self.folio_id:
|
if self.folio_id:
|
||||||
msg = _("Payment %s modified: \n") % (self.communication)
|
msg = _("Payment %s modified: \n") % (self.communication)
|
||||||
if self.save_amount and self.save_amount != self.amount:
|
if self.save_amount and self.save_amount != self.amount:
|
||||||
|
|||||||
Reference in New Issue
Block a user