Commit a6e7695e authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: fixing minor bug in Data Set creation

parent aae9fb7a
...@@ -110,11 +110,15 @@ try: ...@@ -110,11 +110,15 @@ try:
version = "001" version = "001"
) )
data_set.validate() data_set.validate()
else:
log("Data Set found for dataset reference: " + dataset_reference)
except: except:
data_set = portal.data_set_module.get(dataset_reference) data_set = portal.data_set_module.get(dataset_reference)
log("Data Set found for dataset reference: " + data_set.getReference()) log("Data Set found for dataset reference: " + dataset_reference)
else: if data_set.getReference().endswith("_invalid"):
log("Data Set found for dataset reference: " + data_set.getReference()) data_set.setReference(data_set.getReference().replace("_invalid", ""))
if data_set.getValidationState() == "invalidated":
data_set.validate()
input_line.setDefaultAggregateValue(data_set) input_line.setDefaultAggregateValue(data_set)
data_ingestion.plan() data_ingestion.plan()
......
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