Commit 24d56312 authored by Jérome Perrin's avatar Jérome Perrin

set ignore_group_by in kw, otherwise it may be passed twice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29919 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 166d5692
......@@ -851,7 +851,8 @@ class SimulationTool(BaseTool):
# build a table in MySQL
# and join that table with the stock table
method = getattr(self,'get%sInventoryList' % simulation_period)
result = method(inventory_list=0, ignore_group_by=1, src__=src__, **kw)
kw['ignore_group_by'] = 1
result = method(inventory_list=0, src__=src__, **kw)
if src__:
return result
......@@ -1466,7 +1467,8 @@ class SimulationTool(BaseTool):
price rather than an inventory.
"""
method = getattr(self,'get%sInventoryList' % simulation_period)
result = method( src__=src__, inventory_list=0, ignore_group_by=1, **kw)
kw['ignore_group_by'] = 1
result = method( src__=src__, inventory_list=0, **kw)
if src__ :
return result
......
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