[Erp5-report] r37219 aurel - /erp5/trunk/products/ERP5/Document/Inventory.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 21 16:34:49 CEST 2010


Author: aurel
Date: Wed Jul 21 16:34:49 2010
New Revision: 37219

URL: http://svn.erp5.org?rev=37219&view=rev
Log:
to be more coherent, use getCurrentInventoryList in Inventory
reindexation as in the way it was done before some simulation states and
conditions were missing, so inventory was not using the real "current"
value to do computation

Modified:
    erp5/trunk/products/ERP5/Document/Inventory.py

Modified: erp5/trunk/products/ERP5/Document/Inventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Inventory.py?rev=37219&r1=37218&r2=37219&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Inventory.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Inventory.py [utf8] Wed Jul 21 16:34:49 2010
@@ -154,12 +154,11 @@ class Inventory(Delivery):
 
     for inventory_calculation_dict in default_inventory_calculation_list:
 
-      # build a dict containing all inventory for this node 
+      # build a dict containing all inventory for this node
       # group by resource/variation and then subvariation
       current_inventory_list = \
-          self.getPortalObject().portal_simulation.getInventoryList(        
+          self.getPortalObject().portal_simulation.getCurrentInventoryList(
                   to_date=stop_date,
-                  simulation_state=self.getPortalCurrentInventoryStateList(),
                   connection_id=connection_id,
                   **inventory_calculation_dict['inventory_params']
           )




More information about the Erp5-report mailing list