Commit 6712d2d9 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor to be possible find Slave Instance

parent 34693d7e
......@@ -65,7 +65,8 @@ order_line_list = context.portal_catalog( \n
\n
# XXX order line has to display (as order is under approval)\n
\n
result = [x.getAggregateValue(portal_type="Software Instance") for x in line_list]\n
portal_type_list = ["Software Instance", "Slave Instance"]\n
result = [x.getAggregateValue(portal_type=portal_type_list) for x in line_list]\n
result.extend([x.getAggregateValue(portal_type="Software Instance") for x in order_line_list])\n
# result.extend([x.getObject() for x in order_line_list])\n
return result\n
......
89
\ No newline at end of file
90
\ 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