Commit d487abca authored by Titouan Soulard's avatar Titouan Soulard

erp5_trade: add intermediate workflow state on Inventory

parent 050e2b69
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow State" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>destination/portal_workflow/inventory_workflow/transition_plan</string>
</tuple>
</value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>state_calculating</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Calculating</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -16,12 +16,11 @@ ...@@ -16,12 +16,11 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>destination/portal_workflow/inventory_workflow/transition_calculate</string>
<string>destination/portal_workflow/inventory_workflow/transition_cancel</string> <string>destination/portal_workflow/inventory_workflow/transition_cancel</string>
<string>destination/portal_workflow/inventory_workflow/transition_cancel_action</string> <string>destination/portal_workflow/inventory_workflow/transition_cancel_action</string>
<string>destination/portal_workflow/inventory_workflow/transition_delete</string> <string>destination/portal_workflow/inventory_workflow/transition_delete</string>
<string>destination/portal_workflow/inventory_workflow/transition_delete_action</string> <string>destination/portal_workflow/inventory_workflow/transition_delete_action</string>
<string>destination/portal_workflow/inventory_workflow/transition_plan</string>
<string>destination/portal_workflow/inventory_workflow/transition_plan_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -6,21 +6,12 @@ ...@@ -6,21 +6,12 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=plan_action</string> </value>
</item>
<item>
<key> <string>action_name</string> </key>
<value> <string>Calculate</string> </value>
</item>
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/workflow</string> <string>action_type/workflow</string>
<string>before_script/portal_workflow/inventory_workflow/script_validateConsistency</string> <string>destination/portal_workflow/inventory_workflow/state_calculating</string>
<string>after_script/portal_workflow/inventory_workflow/transition_plan</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -32,17 +23,9 @@ ...@@ -32,17 +23,9 @@
</item> </item>
<item> <item>
<key> <string>guard_permission</string> </key> <key> <string>guard_permission</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>guard_role</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Modify portal content</string>
<string>Assignor</string>
<string>Manager</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -54,11 +37,15 @@ ...@@ -54,11 +37,15 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>transition_plan_action</string> </value> <value> <string>transition_calculate</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Calculate Action</string> </value> <value> <string>Calculate</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Calculate</string> </value> <value> <string>Plan</string> </value>
</item> </item>
<item> <item>
<key> <string>trigger_type</string> </key> <key> <string>trigger_type</string> </key>
......
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