From a391188cd0375a2ce5f37726eb1cf29859d34a31 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 26 Jan 2006 13:25:44 +0000 Subject: [PATCH] Allow to execute scripts corresponding to action presented to the user, so he can actually pass transactions. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5337 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../sale_opportunity_workflow/states/contacted.xml | 11 +++++++++++ .../sale_opportunity_workflow/states/enquired.xml | 9 +++++++++ .../sale_opportunity_workflow/states/expired.xml | 7 +++++++ .../sale_opportunity_workflow/states/offered.xml | 10 ++++++++++ .../sale_opportunity_workflow/states/rejected.xml | 7 +++++++ .../sale_opportunity_workflow/states/sold.xml | 7 +++++++ 6 files changed, 51 insertions(+) diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/contacted.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/contacted.xml index f6e5255fbf..4eb258e9ef 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/contacted.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/contacted.xml @@ -34,14 +34,25 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>email_offer</string> <string>email_offer_action</string> + <string>enquire</string> <string>enquire_action</string> + <string>expire</string> <string>expire_action</string> + <string>offer</string> <string>offer_action</string> + <string>sell</string> <string>sell_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>uid</string> </key> <value> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/enquired.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/enquired.xml index 79e9ef95ba..8749f645b9 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/enquired.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/enquired.xml @@ -34,12 +34,21 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>email_offer</string> <string>email_offer_action</string> + <string>expire</string> <string>expire_action</string> + <string>offer</string> <string>offer_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>uid</string> </key> <value> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/expired.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/expired.xml index 2c4ff14547..e2ce9b8884 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/expired.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/expired.xml @@ -40,10 +40,17 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>reset</string> <string>reset_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/offered.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/offered.xml index d5dc56fb49..41300c6fe0 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/offered.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/offered.xml @@ -34,13 +34,23 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>enquire</string> <string>enquire_action</string> + <string>expire</string> <string>expire_action</string> + <string>reject</string> <string>reject_action</string> + <string>sell</string> <string>sell_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>uid</string> </key> <value> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/rejected.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/rejected.xml index 1702e36dc9..f01c2d2a22 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/rejected.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/rejected.xml @@ -34,10 +34,17 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>reset</string> <string>reset_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>uid</string> </key> <value> diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/sold.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/sold.xml index 730a1b3405..67e72ec07d 100755 --- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/sold.xml +++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/states/sold.xml @@ -34,10 +34,17 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>reset</string> <string>reset_action</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>uid</string> </key> <value> -- 2.30.9