Commit 958760a6 authored by Rafael Monnerat's avatar Rafael Monnerat

Packing lists related to Slave Instances do not change state of Computer Partition

parent 3d46cd87
......@@ -63,9 +63,11 @@ if sale_order is None:\n
if computer_partition is None:\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % sale_packing_list_line.getRelativeUrl())\n
else:\n
# Mark computer partition as busy\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markBusy()\n
# Slave instance do not change state of computer partitions.\n
if sale_packing_list_line.getAggregate(portal_type=["Slave Instance"]) is None:\n
# Mark computer partition as busy\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markBusy()\n
</string> </value>
</item>
<item>
......
......@@ -67,9 +67,11 @@ computer_partition = current_delivery_line.getAggregateValue(portal_type=["Compu
if computer_partition is None:\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % current_delivery_line.getRelativeUrl())\n
else:\n
# Mark computer partition as free\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markFree()\n
# Slave instance do not change state of computer partitions.\n
if sale_packing_list_line.getAggregate(portal_type=["Slave Instance"]) is None:\n
# Mark computer partition as free\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markFree()\n
\n
# Deliver all SPL related to this software instance\n
software_instance = current_delivery_line.getAggregateValue(portal_type="Software Instance")\n
......
403
\ No newline at end of file
404
\ 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