diff --git a/l10n_mx_facturae/models/account_voucher.py b/l10n_mx_facturae/models/account_voucher.py index 6258e9bfbf5ea35f39e9af818488cb6811e90646..382937b3d974f2eda84c6d657c8fa96e4e3a780d 100644 --- a/l10n_mx_facturae/models/account_voucher.py +++ b/l10n_mx_facturae/models/account_voucher.py @@ -126,6 +126,7 @@ class AccountVoucher(models.Model): payments = payments.filtered( lambda r: r.date >= invoice.date_invoice and r.journal_id.type in ("cash", "bank") + and r.payment_id.cfdi_state in ("signed", "done") ) return len(payments) + 1