Commit 39a57a3c authored by Gabriel Monnerat's avatar Gabriel Monnerat

check if the transition is possible

parent 50f8fae9
...@@ -55,8 +55,10 @@ ...@@ -55,8 +55,10 @@
except ValueError:\n except ValueError:\n
pass\n pass\n
else:\n else:\n
isTransitionPossible = context.portal_workflow.isTransitionPossible\n
packing_list = packing_list_line.getParentValue()\n packing_list = packing_list_line.getParentValue()\n
packing_list.stop()\n if isTransitionPossible(packing_list, "stop"):\n
packing_list.stop()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
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