Ensure that the computed traces of a stock move have a lot
For example the production module may include input or output moves without lot. Closes #14396
This commit is contained in:
1 parent
e189e555fe
commit
86f3804d63
1 file changed
+1
-1
@@ -269,7 +269,7 @@ class LotTrace(ModelSQL, ModelView):
|
||||
|
||||
@classmethod
|
||||
def _is_trace_move(cls, move):
|
||||
return move.state == 'done'
|
||||
return move.state == 'done' and move.lot
|
||||
|
||||
@classmethod
|
||||
def _trace_move_order_key(cls, move):
|
||||
|
||||
Reference in new issue
Block a user