[Erp5-report] r29919 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 22 13:23:56 CEST 2009


Author: jerome
Date: Thu Oct 22 13:23:56 2009
New Revision: 29919

URL: http://svn.erp5.org?rev=29919&view=rev
Log:
set ignore_group_by in kw, otherwise it may be passed twice

Modified:
    erp5/trunk/products/ERP5/Tool/SimulationTool.py

Modified: erp5/trunk/products/ERP5/Tool/SimulationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SimulationTool.py?rev=29919&r1=29918&r2=29919&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] Thu Oct 22 13:23:56 2009
@@ -851,7 +851,8 @@
       #   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 @@
       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
 




More information about the Erp5-report mailing list