Commit d53a2e7e authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Klaus Wölfel

erp5_pdm: transformation change can also contains transformation transformed resource

parent 2a1ed59a
......@@ -2,7 +2,7 @@ transformation = state_change['object']
# The script can be called from a Line or from a Cell
# Find the Transformation ancestor
while transformation.getPortalType() != "Transformation":
while transformation.getPortalType() not in ("Transformation", "Transformation Change"):
transformation = transformation.getParentValue()
resource = transformation.getResourceValue()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment