From 17039f02b31335842d47ab6534e05314535c9796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 10 Oct 2008 13:17:59 +0000 Subject: [PATCH] bank account must not be modified if not in draft or modificaiton state git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24142 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_workflow/bank_account_workflow.xml | 1 + .../bank_account_workflow/states/being_closed.xml | 6 ++++++ .../portal_workflow/bank_account_workflow/states/closed.xml | 6 ++++++ .../portal_workflow/bank_account_workflow/states/valid.xml | 6 ++++++ .../bank_account_workflow/states/validating_closing.xml | 6 ++++++ .../states/validating_modification.xml | 6 ++++++ bt5/erp5_banking_core/bt/revision | 2 +- 7 files changed, 32 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow.xml index 28719def3e..4b99ab62cf 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow.xml @@ -46,6 +46,7 @@ <value> <tuple> <string>Delete objects</string> + <string>Modify portal content</string> </tuple> </value> </item> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/being_closed.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/being_closed.xml index 8bf00ddab3..a8a26ea54f 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/being_closed.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/being_closed.xml @@ -64,6 +64,12 @@ <tuple/> </value> </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/closed.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/closed.xml index e24e559071..813e1cc929 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/closed.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/closed.xml @@ -61,6 +61,12 @@ <tuple/> </value> </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/valid.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/valid.xml index 893da50d0a..2dc2022e3b 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/valid.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/valid.xml @@ -66,6 +66,12 @@ <tuple/> </value> </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_closing.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_closing.xml index 7959f0e8a8..3e9a968ecb 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_closing.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_closing.xml @@ -68,6 +68,12 @@ <tuple/> </value> </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_modification.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_modification.xml index aa30574536..d97a8c2363 100644 --- a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_modification.xml +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/bank_account_workflow/states/validating_modification.xml @@ -66,6 +66,12 @@ <tuple/> </value> </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 9d3f41701a..2da4325331 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -455 \ No newline at end of file +457 \ No newline at end of file -- 2.30.9