diff --git a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py index f4965965e..6ae3a5e42 100644 --- a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py +++ b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py @@ -485,8 +485,7 @@ def validate_mail(self): mvals.pop('attachment_ids', None) mvals.pop('attachments', None) mail = self.env['mail.mail'].create(mvals) - inv_report = self.env['ir.actions.report']._get_report_from_name( - 'account.report_invoice_with_payments') + inv_report = self.env.ref('account.account_invoices') if self.company_id.overdue_reminder_attach_invoice: attachment_ids = [] for inv in self.invoice_ids: