summaryrefslogtreecommitdiff
path: root/addons/account/report
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-08 11:52:13 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-08 11:52:13 +0200
commitb792ba7d9a80e856e3c69c2852e6d44b78d0e13f (patch)
treea3ee5b7ef9f9317866deeb2b3e5964020c87b8fb /addons/account/report
parent22e0f88bce5bf162a6c67e915a3c27b101f74f2b (diff)
parent752b2553c6fad061ebf23e13585f7b7489b20840 (diff)
[MERGE] forward port branch saas-12.3 up to 752b2553c6f
Diffstat (limited to 'addons/account/report')
-rw-r--r--addons/account/report/account_invoice_report.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py
index d63c997347f..70f608f8147 100644
--- a/addons/account/report/account_invoice_report.py
+++ b/addons/account/report/account_invoice_report.py
@@ -182,10 +182,9 @@ class ReportInvoiceWithPayment(models.AbstractModel):
@api.model
def _get_report_values(self, docids, data=None):
- report = self.env['ir.actions.report']._get_report_from_name('account.report_invoice_with_payments')
return {
'doc_ids': docids,
- 'doc_model': report.model,
- 'docs': self.env[report.model].browse(docids),
+ 'doc_model': 'account.invoice',
+ 'docs': self.env['account.invoice'].browse(docids),
'report_type': data.get('report_type') if data else '',
}