From a62f9d6672b117af17aa359e4f05f4e8ff6077d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Sep 2020 10:29:09 +0200 Subject: [PATCH] Remove custom naming from invoice report issue9509 --- invoice.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/invoice.py b/invoice.py index 0158f14725..be00254836 100644 --- a/invoice.py +++ b/invoice.py @@ -2584,15 +2584,8 @@ class InvoiceReport(Report): @classmethod def execute(cls, ids, data): - pool = Pool() - Invoice = pool.get('account.invoice') with Transaction().set_context(address_with_party=True): - result = super(InvoiceReport, cls).execute(ids, data) - if len(ids) == 1: - invoice, = Invoice.browse(ids) - if invoice.number: - result = result[:3] + (result[3] + ' - ' + invoice.number,) - return result + return super().execute(ids, data) @classmethod def get_context(cls, records, data):