mirror of
https://gitlab.com/datalifeit/trytond-stock_lot_fifo
synced 2023-12-14 06:02:54 +01:00
Fix shipment move check
This commit is contained in:
parent
835922321d
commit
5171c7c9b9
2
stock.py
2
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue