[Erp5-report] r16781 - /erp5/trunk/products/ERP5/Document/TransformationRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 2 17:30:14 CEST 2007


Author: romain
Date: Tue Oct  2 17:30:13 2007
New Revision: 16781

URL: http://svn.erp5.org?rev=16781&view=rev
Log:
As industrial phase is a variation, it's safer to use setVariationCategoryList,
because dict does not keep ordering.

Modified:
    erp5/trunk/products/ERP5/Document/TransformationRule.py

Modified: erp5/trunk/products/ERP5/Document/TransformationRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TransformationRule.py?rev=16781&r1=16780&r2=16781&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TransformationRule.py (original)
+++ erp5/trunk/products/ERP5/Document/TransformationRule.py Tue Oct  2 17:30:13 2007
@@ -229,7 +229,7 @@
                                                      all=1)
         if previous_ind_phase_list != []:
           # 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]
           consumed_mvt_id = "%s_%s" % ("mr", id_count)
           id_count += 1
@@ -246,11 +246,11 @@
             "source": production,
             "source_section": production_section,
             "deliverable": 1,
-            "variation_category_list": category_list,
+            "variation_category_list": category_list+ind_phase_list,
             "variation_property_dict": \
                         parent_movement.getVariationPropertyDict(),
             'causality_value': current_supply_link,
-            "industrial_phase_list": ind_phase_list}
+            }
       return consumed_movement_dict
 
     def _expandConsumedRawMaterials(self, applied_rule, production,




More information about the Erp5-report mailing list