Commit 9fb4f154 authored by Romain Courteaud's avatar Romain Courteaud

As industrial phase is a variation, it's safer to use setVariationCategoryList,

because dict does not keep ordering.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16781 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa0226cf
...@@ -229,7 +229,7 @@ class TransformationRule(Rule): ...@@ -229,7 +229,7 @@ class TransformationRule(Rule):
all=1) all=1)
if previous_ind_phase_list != []: if previous_ind_phase_list != []:
# Industrial phase is a category # Industrial phase is a category
ind_phase_list = [x.getCategoryRelativeUrl() for x in \ ind_phase_list = [x.getRelativeUrl() for x in \
previous_ind_phase_list] previous_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
...@@ -246,11 +246,11 @@ class TransformationRule(Rule): ...@@ -246,11 +246,11 @@ class TransformationRule(Rule):
"source": production, "source": production,
"source_section": production_section, "source_section": production_section,
"deliverable": 1, "deliverable": 1,
"variation_category_list": category_list, "variation_category_list": category_list+ind_phase_list,
"variation_property_dict": \ "variation_property_dict": \
parent_movement.getVariationPropertyDict(), parent_movement.getVariationPropertyDict(),
'causality_value': current_supply_link, 'causality_value': current_supply_link,
"industrial_phase_list": ind_phase_list} }
return consumed_movement_dict return consumed_movement_dict
def _expandConsumedRawMaterials(self, applied_rule, production, def _expandConsumedRawMaterials(self, applied_rule, production,
......
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