diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index 922a3a4b4c6b450bbb00e41d4653de545d335d6b..17d21de027061aa7e3dd6141cb20b315beb4ab85 100644 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -278,7 +278,7 @@ class SimulationTool(BaseTool): if strict_simulation_state: if isinstance(simulation_state, string_or_list)\ and simulation_state: - simulation_query = Query( + simulation_query = SimpleQuery( **{'stock.simulation_state': simulation_state}) else: # first, we evaluate simulation_state