From c41547b93875cfe0fef137bbc9ba64c0ba4d88ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 9 Dec 2005 18:27:51 +0000
Subject: [PATCH] handle src__ argument correctly in getInventoryStat

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4579 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Tool/SimulationTool.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py
index 008b67b978..5f800e137b 100755
--- a/product/ERP5/Tool/SimulationTool.py
+++ b/product/ERP5/Tool/SimulationTool.py
@@ -510,6 +510,9 @@ class SimulationTool (BaseTool):
           ignore_variation=ignore_variation, standardise=standardise, omit_simulation=omit_simulation,
           omit_input=omit_input, omit_output=omit_output,
           selection_domain=selection_domain, selection_report=selection_report, **sql_kw)
+      if src__ :
+        return result
+      
       total_result = 0
       for row in result :
         total_result += row.stock_uid
-- 
2.30.9