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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 18 18:16:38 CEST 2008


Author: jerome
Date: Fri Jul 18 18:16:36 2008
New Revision: 22565

URL: http://svn.erp5.org?rev=22565&view=rev
Log:
Add a Manager proxy role on DeliveryMovement_unlinkSimulation.
When deleting a delivery movement, related simulation movements are modified. This mean that the user deleting a delivery movement needs modify portal content permission on related simulation movements.
For now we added a Manager proxy role, but ideally this should be done from unrestricted code

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/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=22565&r1=22564&r2=22565&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 Fri Jul 18 18:16:36 2008
@@ -65,7 +65,15 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>delivery_movement = state_change[\'object\']\n
+            <value> <string>"""Unlink simulation movements when delivery movement is deleted.\n
+This way when a delivery movement is deleted, corresponding simulation movement\n
+will again be candidates for building in another delivery.\n
+\n
+XXX: security (future) bug: this requires that the system is configured in a way where \n
+simulation movement can be accessed in restrictred mode. For now this script has a proxy\n
+role, but someday we\'ll have to move this to unrestricted environment.\n
+"""\n
+delivery_movement = state_change[\'object\']\n
 \n
 # Clean simulation\n
 simulation_movement_list = delivery_movement.getDeliveryRelatedValueList(\n
@@ -90,6 +98,14 @@
         <item>
             <key> <string>_params</string> </key>
             <value> <string>state_change</string> </value>
+        </item>
+        <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Manager</string>
+              </tuple>
+            </value>
         </item>
         <item>
             <key> <string>errors</string> </key>

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=22565&r1=22564&r2=22565&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Jul 18 18:16:36 2008
@@ -1,1 +1,1 @@
-879
+881




More information about the Erp5-report mailing list