Commit 00f9d57b authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Titouan Soulard

erp5_pdm: transformation change can also contains transformation transformed resource

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