From edb713ed6f598cb29aeccff438f6a1727c9c5d7f Mon Sep 17 00:00:00 2001 From: "matthieu.saison" Date: Mon, 6 Jan 2025 11:21:05 +0100 Subject: [PATCH] fix wizard overdue reminder total_residual --- .../wizard/overdue_reminder_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py index 626263a90..8c8516a96 100644 --- a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py +++ b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py @@ -644,7 +644,7 @@ def print_invoices(self): def total_residual(self): self.ensure_one() res = defaultdict(float) - for inv in self.invoice_ids: + for inv in self.get_invoices(): res[inv.currency_id] += inv.amount_residual * ( inv.move_type == "out_refund" and -1 or 1 )