Linkage report

This commit is contained in:
2026-07-07 18:47:15 +02:00
parent 82143ba87d
commit 5c3464da5c

View File

@@ -4490,6 +4490,13 @@ class LotReportLinkageRecord:
if callable(set_lang):
set_lang(language)
def get_common_context(self, commoncontext):
shipment = getattr(self.lot, 'lot_shipment_in', None)
get_common_context = getattr(shipment, 'get_common_context', None)
if callable(get_common_context):
return get_common_context(commoncontext)
return None
@staticmethod
def _report_record_key(record):
return ShipmentIn._report_record_key(record)