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 )