changeset 6ba8bdbae29a in modules/account_invoice:default
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=6ba8bdbae29a
description:
Remove custom naming from invoice report
issue9509
diffstat:
invoice.py | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diffs (20 lines):
diff -r d2a32b625e72 -r 6ba8bdbae29a invoice.py
--- a/invoice.py Sat Sep 05 23:37:58 2020 +0200
+++ b/invoice.py Thu Sep 24 10:29:09 2020 +0200
@@ -2584,15 +2584,8 @@
@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):