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