Commit f31c4fff authored by Łukasz Nowak's avatar Łukasz Nowak

Immediately deliver, not stop, instance setup delivery.

parent dc5a9561
......@@ -62,8 +62,8 @@ if line.getResource() != portal.portal_preferences.getPreferredInstanceSetupReso
comment = translateString(\'Automatic transition on setup delivery.\')\n
if portal.portal_workflow.isTransitionPossible(context, \'start\'):\n
context.start(comment=comment)\n
if portal.portal_workflow.isTransitionPossible(context, \'stop\'):\n
context.stop(comment=comment)\n
context.deliver(comment=comment)\n
</string> </value>
</item>
<item>
......@@ -72,7 +72,7 @@ if portal.portal_workflow.isTransitionPossible(context, \'stop\'):\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SalePackingList_stopInstanceSetup</string> </value>
<value> <string>SalePackingList_deliverInstanceSetup</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -69,7 +69,7 @@ portal = packing_list.getPortalObject()\n
\n
if line.getResource() == portal.portal_preferences.getPreferredInstanceSetupResource():\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).SalePackingList_stopInstanceSetup()\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).SalePackingList_deliverInstanceSetup()\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\n
......
453
\ No newline at end of file
454
\ 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