Commit 3a51dd94 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_pdm: transformation change can also contains transformation transformed resource

parent dbd4fb54
......@@ -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