Commit 51e0dc83 authored by Tatuya Kamada's avatar Tatuya Kamada

erp5_wendelin: Check the Data Ingestion validation_state when fallback

If the Data Ingestion is not found with catalog, searching by ID is the fallback.
We need to check the validation_state even if it is searching by the ID.
parent a87c4d0e
...@@ -18,6 +18,8 @@ data_ingestion = portal_catalog.getResultValue( ...@@ -18,6 +18,8 @@ data_ingestion = portal_catalog.getResultValue(
if data_ingestion is None: if data_ingestion is None:
data_ingestion = portal.data_ingestion_module.get(data_ingestion_id) data_ingestion = portal.data_ingestion_module.get(data_ingestion_id)
if data_ingestion.getSimulationState() != "started":
data_ingestion = None
if data_ingestion is None: if data_ingestion is None:
specialise_value_list = [x.getObject() for x in portal_catalog.searchResults( specialise_value_list = [x.getObject() for x in portal_catalog.searchResults(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment