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

Generate more in time setup deliveries.

There could be big difference between ordering an instance and finding a
partition.

So in order to reflect real setup time set order's start date to moment when
partition has been found.
parent 51a40b34
......@@ -50,7 +50,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
<value> <string>from DateTime import DateTime\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from zExceptions import Unauthorized\n
\n
def assignComputerPartition(order):\n
......@@ -104,6 +105,7 @@ if sale_order.getSimulationState() == \'ordered\':\n
# order not ready yet\n
pass\n
else:\n
sale_order.setStartDate(DateTime())\n
sale_order.confirm()\n
</string> </value>
</item>
......
667
\ No newline at end of file
668
\ 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