From 5c3464da5ce814c5b320c21e724e34579c9c5480 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Tue, 7 Jul 2026 18:47:15 +0200 Subject: [PATCH] Linkage report --- modules/purchase_trade/stock.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)