From ddc092332afc3de0e5e31181b5ec3a377ada966f Mon Sep 17 00:00:00 2001 From: sergiocorato Date: Mon, 13 Sep 2021 11:01:54 +0200 Subject: [PATCH] [12.0][IMP] account_invoice_overdue_reminder get invoice generic report --- .../wizard/overdue_reminder_wizard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py index 0872c1b89..e99c9ce5a 100644 --- a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py +++ b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py @@ -469,8 +469,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: