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

- added filtering to show only consumption on nodes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22326 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9edcaa6
......@@ -65,7 +65,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""Returns list of resources\' inventories used in consumption for production\n
<value> <string encoding="cdata"><![CDATA[
"""Returns list of resources\' inventories used in consumption for production\n
\n
Args:\n
- omit_order_resources [default: 1]\n
......@@ -95,8 +97,11 @@ kw[\'group_by_node\'] = 1\n
kw[\'group_by_variation\'] = 1\n
kw[\'group_by_resource\'] = 1\n
kwargs.update(**kw)\n
return simulation_tool.getFutureInventoryList(*args,**kwargs)\n
</string> </value>
# XXX: below filtering to be replaced by HAVING expression\n
return [q for q in simulation_tool.getFutureInventoryList(*args,**kwargs) if q.inventory < 0.0]\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......
331
\ No newline at end of file
332
\ 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