Commit 5e6388fe authored by Gabriel Monnerat's avatar Gabriel Monnerat

don't need call getPortalObject to use the function isTransitionPossible

parent 46da9d7b
...@@ -52,7 +52,8 @@ ...@@ -52,7 +52,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>packing_list_line = context.SlaveInstance_getInstanceSetupPackingListLine(state_change)\n <value> <string>packing_list_line = context.SlaveInstance_getInstanceSetupPackingListLine(state_change)\n
packing_list = packing_list_line.getParentValue()\n packing_list = packing_list_line.getParentValue()\n
if packing_list.getPortalObject().portal_workflow.isTransitionPossible(packing_list, \'start\'):\n isTransitionPossible = context.portal_workflow.isTransitionPossible\n
if isTransitionPossible(packing_list, \'start\'):\n
packing_list.start()\n packing_list.start()\n
</string> </value> </string> </value>
</item> </item>
......
261 262
\ No newline at end of file \ No newline at end of file
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