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

Support deletion of Sale Order less instances.

parent da8c545b
...@@ -62,7 +62,7 @@ software_instance.serialize()\n ...@@ -62,7 +62,7 @@ software_instance.serialize()\n
\n \n
sale_order_line = software_instance.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n sale_order_line = software_instance.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n
\n \n
if sale_order_line.getSimulationState() == \'ordered\':\n if sale_order_line is not None and sale_order_line.getSimulationState() == \'ordered\':\n
# tries to destroy not yet even allocated one\n # tries to destroy not yet even allocated one\n
sale_order_line.getParentValue().cancel()\n sale_order_line.getParentValue().cancel()\n
else:\n else:\n
......
433 434
\ 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