Use address_with_party for reports

issue2327
review31451002
This commit is contained in:
Cédric Krier committed 2016-09-06 09:25:36 +02:00
1 parent b7239a755f
commit 1adc0fe9ad
3 files changed
+10

No files matched your search

BIN
View File
Binary file not shown.
Binary file not shown.
+10
View File
@@ -2433,6 +2433,11 @@ class DeliveryNote(CompanyReport):
'Delivery Note'
__name__ = 'stock.shipment.out.delivery_note'
@classmethod
def execute(cls, ids, data):
with Transaction().set_context(address_with_party=True):
return super(DeliveryNote, cls).execute(ids, data)
@classmethod
def get_context(cls, records, data):
report_context = super(DeliveryNote, cls).get_context(records, data)
@@ -2450,6 +2455,11 @@ class DeliveryNote(CompanyReport):
class ShipmentReport(CompanyReport):
move_attribute = 'inventory_moves'
@classmethod
def execute(cls, ids, data):
with Transaction().set_context(address_with_party=True):
return super(ShipmentReport, cls).execute(ids, data)
@classmethod
def get_context(cls, records, data):
report_context = super(ShipmentReport, cls).get_context(records, data)