From f6c197e5d4e1d4785577d2382ac3e2957e0c2406 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 8 Aug 2019 13:38:43 +0200 Subject: [PATCH] [FIX] account: use correct model Oversight of previous forward-port. --- addons/account/report/account_invoice_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '', }