[IMP] account_document_reversal: Exclude cancelled payments from bank reconciliation

This commit is contained in:
Jordi Ballester Alomar
2023-07-20 12:21:35 +02:00
parent 621a2dacee
commit 111671c14a
4 changed files with 84 additions and 2 deletions

View File

@@ -39,4 +39,5 @@ class AccountPayment(models.Model):
for payment in payments_to_revert:
payment.unreconcile()
payment.action_document_reversal(date=date, journal_id=journal_id)
self.write({"move_name": False})
return True