Commit 6cecf464 authored by Alexandre Boeglin's avatar Alexandre Boeglin

2007-09-06 alex

* rename simulation_movement_interaction_workflow to simulation_movement_causality_interaction_workflow
* follow style used in delivery_causality_interaction_workflow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a1b1166
...@@ -41,6 +41,6 @@ ...@@ -41,6 +41,6 @@
</chain> </chain>
<chain> <chain>
<type>Simulation Movement</type> <type>Simulation Movement</type>
<workflow>simulation_movement_interaction_workflow</workflow> <workflow>simulation_movement_causality_interaction_workflow</workflow>
</chain> </chain>
</workflow_chain> </workflow_chain>
\ No newline at end of file
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.DCWorkflow.Variables</string> <string>Products.ERP5.InteractionWorkflow</string>
<string>VariableDefinition</string> <string>InteractionWorkflowDefinition</string>
</tuple> </tuple>
<none/> <none/>
</tuple> </tuple>
...@@ -19,59 +19,48 @@ ...@@ -19,59 +19,48 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>default_expr</string> </key> <key> <string>_objects</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <tuple/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>default_value</string> </key> <key> <string>_owner</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>creation_guard</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>for_catalog</string> </key> <key> <string>description</string> </key>
<value> <int>0</int> </value> <value> <string>This workflow is used to update the causality state of a delivery each time a related simulation movement is modified</string> </value>
</item> </item>
<item> <item>
<key> <string>for_status</string> </key> <key> <string>groups</string> </key>
<value> <int>0</int> </value> <value>
<tuple/>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>delivery_value</string> </value> <value> <string>simulation_movement_causality_interaction_workflow</string> </value>
</item> </item>
<item> <item>
<key> <string>info_guard</string> </key> <key> <string>manager_bypass</string> </key>
<value> <value> <int>0</int> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>update_always</string> </key> <key> <string>state_var</string> </key>
<value> <int>1</int> </value> <value> <string>amortisation_transaction_edit_workflow_state</string> </value>
</item> </item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>title</string> </key>
<value> <string>python:state_change.getObject().getDelivery()</string> </value> <value> <string>Simulation Movement Interaction Workflow</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <list>
<string>SimulationMovement_editDeliveryValue</string> <string>SimulationMovement_calculateCausalityState</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -56,22 +56,24 @@ ...@@ -56,22 +56,24 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SimulationMovement_edit</string> </value> <value> <string>calculate_causality</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>_edit</string> <string>_set.*</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <none/>
<string>Simulation Movement</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -68,18 +68,16 @@ ...@@ -68,18 +68,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>movement = state_change[\'object\']\n <value> <string>simulation_movement = state_change[\'object\']\n
\n \n
delivery_value = movement.getDeliveryValue()\n delivery_movement = simulation_movement.getDeliveryValue()\n
\n \n
#if delivery_value is not None:\n if delivery_movement is not None:\n
# if delivery_value.getPortalType() in ("Sale Invoice Transaction Line",) :\n delivery = delivery_movement.getExplanationValue()\n
# # XXX Sale Invoice\'s simulation is triggered upon edit, so if we edit now, we fall in an infinite loop ...\n if delivery.getCausalityState() != \'draft\':\n
# return\n delivery.activate(\n
# delivery_value.activate(activity=\'SQLQueue\', after_path_and_method_id=(movement.getPath(), [\'immediateReindexObject\', \'recursiveImmediateReindexObject\'])).edit()\n after_path_and_method_id=(movement.getPath(),\n
\n (\'recursiveImmediateReindexObject\', \'immediateReindexObject\'))).calculate()\n
if delivery_value is not None:\n
delivery_value.getRootDeliveryValue().activate(after_method_id=(\'recursiveImmediateReindexObject\',\'immediateReindexObject\')).updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -142,10 +140,12 @@ if delivery_value is not None:\n ...@@ -142,10 +140,12 @@ if delivery_value is not None:\n
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>movement</string> <string>simulation_movement</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>delivery_value</string> <string>delivery_movement</string>
<string>None</string> <string>None</string>
<string>delivery</string>
<string>movement</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -162,7 +162,7 @@ if delivery_value is not None:\n ...@@ -162,7 +162,7 @@ if delivery_value is not None:\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SimulationMovement_editDeliveryValue</string> </value> <value> <string>SimulationMovement_calculateCausalityState</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
2007-09-06 alex
* rename simulation_movement_interaction_workflow to simulation_movement_causality_interaction_workflow
* follow style used in delivery_causality_interaction_workflow
2007-09-06 aurel 2007-09-06 aurel
* add archive tool * add archive tool
......
436 441
\ No newline at end of file \ No newline at end of file
...@@ -90,7 +90,6 @@ Trash Tool | view ...@@ -90,7 +90,6 @@ Trash Tool | view
portal_actions | bt_tool portal_actions | bt_tool
portal_actions | category_tool portal_actions | category_tool
portal_actions | create_module portal_actions | create_module
portal_actions | manage_archive
portal_membership | manage_members portal_membership | manage_members
portal_properties | history portal_properties | history
portal_properties | list_ui portal_properties | list_ui
......
...@@ -9,4 +9,4 @@ Predicate | rule_interaction_workflow ...@@ -9,4 +9,4 @@ Predicate | rule_interaction_workflow
Preference | preference_workflow Preference | preference_workflow
Property Divergence Tester | edit_workflow Property Divergence Tester | edit_workflow
Quantity Divergence Tester | edit_workflow Quantity Divergence Tester | edit_workflow
Simulation Movement | simulation_movement_interaction_workflow Simulation Movement | simulation_movement_causality_interaction_workflow
\ No newline at end of file \ No newline at end of file
...@@ -7,5 +7,5 @@ order_movement_simulation_interaction_workflow ...@@ -7,5 +7,5 @@ order_movement_simulation_interaction_workflow
order_simulation_interaction_workflow order_simulation_interaction_workflow
preference_workflow preference_workflow
rule_interaction_workflow rule_interaction_workflow
simulation_movement_interaction_workflow simulation_movement_causality_interaction_workflow
validation_workflow validation_workflow
\ No newline at end of file
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