[FIX] account: use correct model

Oversight of previous forward-port.
This commit is contained in:
Christophe Simonis
2019-08-08 13:38:43 +02:00
parent b792ba7d9a
commit f6c197e5d4
@@ -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 '',
}