diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml index d9d9eb7727d8f6a68b273f0956f92b8b468cc4e4..c19e3a26a0bd3b865074148691d11d52dd7d5595 100644 --- a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml @@ -30,7 +30,10 @@ <item> <key> <string>transitions</string> </key> <value> - <tuple/> + <tuple> + <string>invalidate</string> + <string>invalidate_action</string> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml new file mode 100644 index 0000000000000000000000000000000000000000..6b32fec78e84c4e2b48a56bc862be267396a3bf9 --- /dev/null +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml @@ -0,0 +1,61 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>invalidate</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>submitted</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Modify Budget</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml new file mode 100644 index 0000000000000000000000000000000000000000..8db42f7afdabf8edc882701b78272295ebca6cce --- /dev/null +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Modify Budget</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=invalidate_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>invalidate</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>invalidate_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Modify Budget Action</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision index 412965750910b48d20bc79b925a1cc30685a9d64..fb351815657b5e2d423f156c000b624c3a74b73d 100644 --- a/bt5/erp5_budget/bt/revision +++ b/bt5/erp5_budget/bt/revision @@ -1 +1 @@ -196 \ No newline at end of file +197 \ No newline at end of file