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