Fix shipment move check

This commit is contained in:
Sergio Morillo 2023-11-30 19:08:03 +01:00
parent 835922321d
commit 5171c7c9b9
1 changed files with 1 additions and 1 deletions

View File

@ -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()