Use address_with_party for reports
issue2327 review31451002
This commit is contained in:
1 parent
b7239a755f
commit
1adc0fe9ad
3 files changed
+10
No files matched your search
Binary file not shown.
Binary file not shown.
+10
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user