Commit ad2d2c06 authored by Sebastien Robin's avatar Sebastien Robin

add group by mirror node


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5100 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18db0ccb
......@@ -335,6 +335,8 @@ class SimulationTool (BaseTool):
group_by_expression_list.append('stock.sub_variation_text')
if kw.get('group_by_variation',0):
group_by_expression_list.append('stock.variation_text')
if kw.get('group_by_mirror_node',0):
group_by_expression_list.append('stock.mirror_node_uid')
if len(group_by_expression_list):
group_by_expression_list.append('stock.resource_uid') # Always group by resource
sql_kw['group_by_expression'] = ', '.join(group_by_expression_list)
......@@ -416,6 +418,8 @@ class SimulationTool (BaseTool):
group_by_node (useless on getInventory, but useful on getInventoryList)
group_by_mirror_node (useless on getInventory, but useful on getInventoryList)
group_by_sub_variation (useless on getInventory, but useful on getInventoryList)
**kw - if we want extended selection with more keywords (but bad performance)
......
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