From 4f17759148fcc02c279e267256e86fd5dae51da6 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Fri, 31 Mar 2006 00:19:44 +0000
Subject: [PATCH] Get Workflow state list dynamiccaly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6395 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...ting_transaction_simulation_state_list.xml | 50 +++++++++----------
 1 file changed, 23 insertions(+), 27 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/AccountingPreferences_view/my_preferred_accounting_transaction_simulation_state_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/AccountingPreferences_view/my_preferred_accounting_transaction_simulation_state_list.xml
index 889aefbb3c..c086082258 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/AccountingPreferences_view/my_preferred_accounting_transaction_simulation_state_list.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/AccountingPreferences_view/my_preferred_accounting_transaction_simulation_state_list.xml
@@ -152,7 +152,9 @@
                 </item>
                 <item>
                     <key> <string>items</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>required</string> </key>
@@ -226,32 +228,7 @@
                 <item>
                     <key> <string>items</string> </key>
                     <value>
-                      <list>
-                        <tuple>
-                          <string>cancelled</string>
-                          <string>cancelled</string>
-                        </tuple>
-                        <tuple>
-                          <string>draft</string>
-                          <string>draft</string>
-                        </tuple>
-                        <tuple>
-                          <string>planned</string>
-                          <string>planned</string>
-                        </tuple>
-                        <tuple>
-                          <string>confirmed</string>
-                          <string>confirmed</string>
-                        </tuple>
-                        <tuple>
-                          <string>stopped</string>
-                          <string>stopped</string>
-                        </tuple>
-                        <tuple>
-                          <string>delivered</string>
-                          <string>delivered</string>
-                        </tuple>
-                      </list>
+                      <list/>
                     </value>
                 </item>
                 <item>
@@ -284,4 +261,23 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.Formulator.TALESField</string>
+          <string>TALESMethod</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: here.Base_getTranslatedWorkflowStateItemList(wf_id=\'accounting_workflow\')</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
-- 
2.30.9