diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index c54653299845cd862af619599e3af6bb12501313..8b727a6f5ccc047d450fdae386df6f195e708bb0 100644 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -624,7 +624,7 @@ class SimulationTool(BaseTool): group_by_expression_list.append('%s.resource_uid' % table) new_kw['group_by_expression'] = ', '.join(group_by_expression_list) - sql_kw.update(self.portal_catalog.buildSQLQuery(**new_kw)) + sql_kw.update(self.portal_catalog.buildSQLQuery(query_table=table, **new_kw)) return sql_kw #######################################################