Not assing_try in case move is not draft

#047220
This commit is contained in:
Raimon Esteve 2021-09-22 14:23:03 +02:00 committed by GitHub
parent a7b764490e
commit be5aad77ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,9 @@ class Move(metaclass=PoolMeta):
consumed_quantities = {}
order = cls._get_fifo_search_order_by()
for move in moves:
if move.state != 'draft':
continue
if (not move.lot and move.product.lot_is_required(
move.from_location, move.to_location)):