Support address_with_party in invoice report

issue2327
review28661002
This commit is contained in:
Cédric Krier committed 2016-09-06 09:23:44 +02:00
1 parent 8efc4dd1e9
commit 0ee2db70f5
2 files changed
+2 -1

No files matched your search

BIN
View File
Binary file not shown.
+2 -1
View File
@@ -2316,7 +2316,8 @@ class InvoiceReport(Report):
def execute(cls, ids, data):
Invoice = Pool().get('account.invoice')
result = super(InvoiceReport, cls).execute(ids, data)
with Transaction().set_context(address_with_party=True):
result = super(InvoiceReport, cls).execute(ids, data)
invoice = Invoice(ids[0])
if len(ids) > 1: