From d2095dd04fa7d6915a91a8630b5ec0257d0ab9fc Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 15 Oct 2009 03:07:54 +0000
Subject: [PATCH] 2009-10-15 yusei * Fix budget_workflow worklist. Planned
 state did not exist. Now 1_submitted_budget_list shows a list of budgets
 which are waiting to be validated.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29661 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...dget_list.xml => 1_submitted_budget_list.xml} | 16 ++++++++++++----
 bt5/erp5_budget/bt/change_log                    |  3 +++
 bt5/erp5_budget/bt/revision                      |  2 +-
 3 files changed, 16 insertions(+), 5 deletions(-)
 rename bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/{1_planned_budget_list.xml => 1_submitted_budget_list.xml} (82%)

diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_planned_budget_list.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_submitted_budget_list.xml
similarity index 82%
rename from bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_planned_budget_list.xml
rename to bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_submitted_budget_list.xml
index 8c76566cd9..0bb07b74ee 100644
--- a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_planned_budget_list.xml
+++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/worklists/1_submitted_budget_list.xml
@@ -15,19 +15,19 @@
         </item>
         <item>
             <key> <string>actbox_name</string> </key>
-            <value> <string>Budget to Submit (%(count)s)</string> </value>
+            <value> <string>Budget to Validate (%(count)s)</string> </value>
         </item>
         <item>
             <key> <string>actbox_url</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-budget_module/view?validation_state=planned&local_roles:list=Assignor&reset=1
+budget_module/view?validation_state=submitted&local_roles:list=Assignor&reset=1
 
 ]]></string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string>Budget to Submit</string> </value>
+            <value> <string>Budget to Validate</string> </value>
         </item>
         <item>
             <key> <string>guard</string> </key>
@@ -37,7 +37,7 @@ budget_module/view?validation_state=planned&local_roles:list=Assignor&reset=1
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>1_planned_budget_list</string> </value>
+            <value> <string>1_submitted_budget_list</string> </value>
         </item>
         <item>
             <key> <string>var_matches</string> </key>
@@ -97,6 +97,14 @@ budget_module/view?validation_state=planned&local_roles:list=Assignor&reset=1
                       </tuple>
                     </value>
                 </item>
+                <item>
+                    <key> <string>validation_state</string> </key>
+                    <value>
+                      <tuple>
+                        <string>submitted</string>
+                      </tuple>
+                    </value>
+                </item>
               </dictionary>
             </value>
         </item>
diff --git a/bt5/erp5_budget/bt/change_log b/bt5/erp5_budget/bt/change_log
index f14e38add3..b172767a6d 100644
--- a/bt5/erp5_budget/bt/change_log
+++ b/bt5/erp5_budget/bt/change_log
@@ -1,3 +1,6 @@
+2009-10-15 yusei
+* Fix budget_workflow worklist. Planned state did not exist. Now 1_submitted_budget_list shows a list of budgets which are waiting to be validated.
+
 2000-01-08 jerome
 Introduce budget models
 
diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision
index b3b2268d23..20ad60520b 100644
--- a/bt5/erp5_budget/bt/revision
+++ b/bt5/erp5_budget/bt/revision
@@ -1 +1 @@
-228
\ No newline at end of file
+230
\ No newline at end of file
-- 
2.30.9