Commit 6eee2db8 authored by Aurel's avatar Aurel

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37219 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2fd7ad8
...@@ -154,12 +154,11 @@ class Inventory(Delivery): ...@@ -154,12 +154,11 @@ class Inventory(Delivery):
for inventory_calculation_dict in default_inventory_calculation_list: 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 # group by resource/variation and then subvariation
current_inventory_list = \ current_inventory_list = \
self.getPortalObject().portal_simulation.getInventoryList( self.getPortalObject().portal_simulation.getCurrentInventoryList(
to_date=stop_date, to_date=stop_date,
simulation_state=self.getPortalCurrentInventoryStateList(),
connection_id=connection_id, connection_id=connection_id,
**inventory_calculation_dict['inventory_params'] **inventory_calculation_dict['inventory_params']
) )
......
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