diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index 70f608f8147..4b55c56e10c 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -184,7 +184,7 @@ class ReportInvoiceWithPayment(models.AbstractModel): def _get_report_values(self, docids, data=None): return { 'doc_ids': docids, - 'doc_model': 'account.invoice', - 'docs': self.env['account.invoice'].browse(docids), + 'doc_model': 'account.move', + 'docs': self.env['account.move'].browse(docids), 'report_type': data.get('report_type') if data else '', }