From e277cc5e48d42936e38b14f807eae08cd8e94bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 10 Apr 2022 00:08:35 +0200 Subject: [PATCH] Restore depends on on_change_with_transit_location It was wrongly removed by changeset b483de7e3ad8 --- shipment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shipment.py b/shipment.py index 23a2a4a36f..9118b983d4 100644 --- a/shipment.py +++ b/shipment.py @@ -2260,6 +2260,7 @@ class ShipmentInternal(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): def default_company(): return Transaction().context.get('company') + @fields.depends('planned_date', 'planned_start_date', 'company') def on_change_with_transit_location(self, name=None): pool = Pool() Config = pool.get('stock.configuration')