Use only production inputs or outputs for lot trace
The production moves can not have any other traces than their sibling moves. Closes #14385
This commit is contained in:
1 parent
72492c3952
commit
c823ca38a9
1 file changed
+6
-4
@@ -206,13 +206,15 @@ class LotTrace(metaclass=PoolMeta):
|
||||
else_=document)
|
||||
|
||||
def _get_upward_traces(self):
|
||||
traces = super()._get_upward_traces()
|
||||
if self.production_input:
|
||||
traces.update(self.production_input.outputs)
|
||||
traces = set(self.production_input.outputs)
|
||||
else:
|
||||
traces = super()._get_upward_traces()
|
||||
return traces
|
||||
|
||||
def _get_downward_traces(self):
|
||||
traces = super()._get_downward_traces()
|
||||
if self.production_output:
|
||||
traces.update(self.production_output.inputs)
|
||||
traces = set(self.production_output.inputs)
|
||||
else:
|
||||
traces = super()._get_downward_traces()
|
||||
return traces
|
||||
Reference in new issue
Block a user