diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py index 8336d95..0fe43d2 100755 --- a/modules/purchase_trade/stock.py +++ b/modules/purchase_trade/stock.py @@ -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)