Use only production inputs or outputs for lot trace
The production moves can not have any other traces than their sibling moves. Closes #14385 (grafted from 35268a75b6c5517754dbb0e2c31579578e97f3fd) --HG-- branch : 7.0
This commit is contained in:
@@ -156,13 +156,15 @@ class LotTrace(metaclass=PoolMeta):
|
||||
return 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