[Erp5-report] r20180 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: WorkflowTemplateIt...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 27 17:34:07 CET 2008


Author: kazuhiko
Date: Thu Mar 27 17:34:04 2008
New Revision: 20180

URL: http://svn.erp5.org?rev=20180&view=rev
Log:
2008-03-27 Kazuhiko
* clear order/delivery on related simulation movements only when its value is the deleted movement.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/order_movement_simulation_interaction_workflow/scripts/OrderMovement_unlinkSimulation.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml?rev=20180&r1=20179&r2=20180&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml Thu Mar 27 17:34:04 2008
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -74,7 +71,8 @@
 simulation_movement_list = delivery_movement.getDeliveryRelatedValueList(\n
     portal_type="Simulation Movement")\n
 for simulation_movement in simulation_movement_list:\n
-  simulation_movement.setDelivery(None)\n
+  if simulation_movement.getDelivery() == delivery_movement.getRelativeUrl():\n
+    simulation_movement.setDelivery(None)\n
 </string> </value>
         </item>
         <item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/order_movement_simulation_interaction_workflow/scripts/OrderMovement_unlinkSimulation.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/order_movement_simulation_interaction_workflow/scripts/OrderMovement_unlinkSimulation.xml?rev=20180&r1=20179&r2=20180&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/order_movement_simulation_interaction_workflow/scripts/OrderMovement_unlinkSimulation.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/order_movement_simulation_interaction_workflow/scripts/OrderMovement_unlinkSimulation.xml Thu Mar 27 17:34:04 2008
@@ -71,7 +71,8 @@
 simulation_movement_list = order_movement.getOrderRelatedValueList(\n
     portal_type="Simulation Movement")\n
 for simulation_movement in simulation_movement_list:\n
-  simulation_movement.setOrder(None)\n
+  if simulation_movement.getOrder() == order_movement.getRelativeUrl():\n
+    simulation_movement.setOrder(None)\n
 </string> </value>
         </item>
         <item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=20180&r1=20179&r2=20180&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log Thu Mar 27 17:34:04 2008
@@ -1,3 +1,6 @@
+2008-03-27 Kazuhiko
+* clear order/delivery on related simulation movements only when its value is the deleted movement.
+
 2008-03-26 Yusei
 * Added contribution registry tool. This will replace content_type_registry.
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=20180&r1=20179&r2=20180&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Mar 27 17:34:04 2008
@@ -1,1 +1,1 @@
-768
+769




More information about the Erp5-report mailing list