diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py
index 4add698ab822b9859d5c0034a6584b7bb2a7381f..c54653299845cd862af619599e3af6bb12501313 100644
--- a/product/ERP5/Tool/SimulationTool.py
+++ b/product/ERP5/Tool/SimulationTool.py
@@ -765,7 +765,7 @@ class SimulationTool(BaseTool):
       if len(result) > 0:
         if len(result) != 1:
           raise ValueError, 'Sorry we must have only one'
-        inventory = result[0].inventory
+        inventory = result[0].total_quantity
         if inventory is not None:
           total_result = inventory
 
@@ -937,7 +937,7 @@ class SimulationTool(BaseTool):
       if src__ :
         return result
 
-      return map(lambda r: (r.node_title, r.inventory), result)
+      return map(lambda r: (r.node_title, r.total_quantity), result)
 
     security.declareProtected(Permissions.AccessContentsInformation,
                               'getCurrentInventoryChart')