Commit 7252fc23 authored by Łukasz Nowak's avatar Łukasz Nowak

- do no assert, logic is like this: in case if resource destruction SPL is...

- do no assert, logic is like this: in case if resource destruction SPL is being delivered, it is allowed to mark Computer Partition as free

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43991 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb0be7f3
......@@ -60,7 +60,8 @@ destroy_service_relative_url = portal.portal_preferences.getPreferredInstanceCle
sale_packing_list_line_list = current_delivery.contentValues(portal_type="Sale Packing List Line")\n
assert len(sale_packing_list_line_list) == 1\n
current_delivery_line = sale_packing_list_line_list[0]\n
assert current_delivery_line == destroy_service_relative_url\n
if current_delivery_line.getResource() != destroy_service_relative_url:\n
return\n
\n
computer_partition = current_delivery_line.getAggregateValue(portal_type=["Computer Partition", "Slave Partition"])\n
if computer_partition is None:\n
......
359
\ No newline at end of file
360
\ 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