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

Support case of non instantiated instances.

Code shall return empty list of packing lists if instance is not instantiated
yet.
parent acff838f
...@@ -60,6 +60,8 @@ sale_packing_list_line = portal.portal_catalog.getResultValue(\n ...@@ -60,6 +60,8 @@ sale_packing_list_line = portal.portal_catalog.getResultValue(\n
portal_type="Sale Packing List Line",\n portal_type="Sale Packing List Line",\n
aggregate_relative_url=relative_url)\n aggregate_relative_url=relative_url)\n
\n \n
if sale_packing_list_line is None:\n
return []\n
computer_partition_relative_url = sale_packing_list_line.getAggregate(\n computer_partition_relative_url = sale_packing_list_line.getAggregate(\n
portal_type="Computer Partition")\n portal_type="Computer Partition")\n
\n \n
......
439 440
\ 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