From 5171c7c9b98e1c254fbddbd2fdfdf18593cceda3 Mon Sep 17 00:00:00 2001 From: Sergio Morillo Date: Thu, 30 Nov 2023 19:08:03 +0100 Subject: [PATCH] Fix shipment move check --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 69bc5c8..e336f38 100644 --- a/stock.py +++ b/stock.py @@ -29,7 +29,7 @@ class Move(metaclass=PoolMeta): ShipmentIn = Pool().get('stock.shipment.in') if (not self.product.lot_force_assign or ( - (not self.origin or isinstance(self.origin, ShipmentIn)) + (not self.origin or isinstance(self.shipment, ShipmentIn)) and self.from_location.type == 'supplier')): return super().check_lot()