diff --git a/product/ERP5/Document/TransformationRule.py b/product/ERP5/Document/TransformationRule.py index 86a02affc136b0ab2de56553cd0f5b8be91c2881..07fc01a79bbe6b8814f64c4a8d89059f20dd32b5 100755 --- a/product/ERP5/Document/TransformationRule.py +++ b/product/ERP5/Document/TransformationRule.py @@ -222,7 +222,8 @@ class TransformationRule(Rule): getPreviousProductionIndustrialPhaseList(previous_supply_link, all=1) if previous_ind_phase_list != []: - ind_phase_list = [x.getLogicalPath() for x in \ + # Industrial phase is a category + ind_phase_list = [x.getCategoryRelativeUrl() for x in \ previous_ind_phase_list] consumed_mvt_id = "%s_%s" % ("mr", id_count) id_count += 1