From 6eee2db8e13a1cd072ae9aca83fd34bda636e075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 21 Jul 2010 14:34:49 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/Inventory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5/Document/Inventory.py b/product/ERP5/Document/Inventory.py index 0a38c34b5a..44d2d52e67 100644 --- a/product/ERP5/Document/Inventory.py +++ b/product/ERP5/Document/Inventory.py @@ -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'] ) -- 2.30.9