diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index ace4b77b6bbba0f51e5dde7f6aa56c84e892e3da..a656c22683c38a5803989f001b20667266daec3e 100644 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -1796,8 +1796,12 @@ class SimulationTool(BaseTool): result = self.Resource_zGetAssetPrice( valuation_method=valuation_method, + src__=src__, **sql_kw) + if src__ : + return result + if len(result) > 0: return result[-1].total_asset_price