Commit 85a56776 authored by Eteri's avatar Eteri

erp5_wendelin: support transformation check with resolution

parent 5921e600
...@@ -43,10 +43,13 @@ for movement in portal_catalog(query = query): ...@@ -43,10 +43,13 @@ for movement in portal_catalog(query = query):
if line.getResourceValue() == movement.getResourceValue() and line.getQuantity() < 0: if line.getResourceValue() == movement.getResourceValue() and line.getQuantity() < 0:
transformation_list.append(transformation) transformation_list.append(transformation)
break break
transformation_list += list(portal.portal_catalog( for transformation in portal.portal_catalog(
portal_type = "Data Transformation", portal_type = "Data Transformation",
validation_state = "validated", validation_state = "validated",
resource_relative_url = movement.getResource())) resource_relative_url = movement.getResource()):
if transformation.getVariationCategoryList() == movement.getVariationCategoryList():
transformation_list.append(transformation)
for transformation in transformation_list: for transformation in transformation_list:
is_shared_data_analysis = False is_shared_data_analysis = False
# Check if analysis already exists # Check if analysis already exists
......
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