Commit 36f21d80 authored by Romain Courteaud's avatar Romain Courteaud

Remove useless LOG.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3485 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 881f05ef
...@@ -208,6 +208,13 @@ class TransformationRule(Rule): ...@@ -208,6 +208,13 @@ class TransformationRule(Rule):
id_count = 1 id_count = 1
consumed_movement_dict = {} consumed_movement_dict = {}
parent_movement = applied_rule.getParent() parent_movement = applied_rule.getParent()
# Calculate the variation category list of parent movement
base_category_list = parent_movement.getVariationBaseCategoryList()
if "industrial_phase" in base_category_list:
# We do not want to get the industrial phase variation
base_category_list.remove("industrial_phase")
category_list = parent_movement.getVariationCategoryList(
base_category_list=base_category_list)
# Calculate the previous variation # Calculate the previous variation
for previous_supply_link in supply_chain.\ for previous_supply_link in supply_chain.\
getPreviousSupplyLinkList(current_supply_link): getPreviousSupplyLinkList(current_supply_link):
...@@ -217,8 +224,6 @@ class TransformationRule(Rule): ...@@ -217,8 +224,6 @@ class TransformationRule(Rule):
if previous_ind_phase_list != []: if previous_ind_phase_list != []:
ind_phase_list = [x.getLogicalPath() for x in \ ind_phase_list = [x.getLogicalPath() for x in \
previous_ind_phase_list] previous_ind_phase_list]
LOG("TransformationRule, _expandConsumedPreviousVariation", 0,
"ind_phase_list: %r" % ind_phase_list)
consumed_mvt_id = "%s_%s" % ("mr", id_count) consumed_mvt_id = "%s_%s" % ("mr", id_count)
id_count += 1 id_count += 1
stop_date = parent_movement.getStartDate() stop_date = parent_movement.getStartDate()
...@@ -234,8 +239,7 @@ class TransformationRule(Rule): ...@@ -234,8 +239,7 @@ class TransformationRule(Rule):
"source": production, "source": production,
"source_section": production_section, "source_section": production_section,
"deliverable": 1, "deliverable": 1,
"variation_category_list": \ "variation_category_list": category_list,
parent_movement.getVariationCategoryList(),
'causality_value': current_supply_link, 'causality_value': current_supply_link,
"industrial_phase_list": ind_phase_list} "industrial_phase_list": ind_phase_list}
return consumed_movement_dict return consumed_movement_dict
......
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