From c9989f48e9d466cc932eab69ddb6690ddb095ea3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 5 May 2006 13:33:40 +0000
Subject: [PATCH] update to respect naming convention

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7100 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../{fast_Input.xml => fastinput.xml}         |  6 +-
 .../portal_types/Cash%20Inventory/history.xml | 93 +++++++++++++++++++
 ...CashInventory_viewLineFastInputDialog.xml} | 59 ++++++++----
 .../bt/template_action_path_list              |  3 +-
 4 files changed, 141 insertions(+), 20 deletions(-)
 rename bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/{fast_Input.xml => fastinput.xml} (91%)
 create mode 100644 bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/history.xml
 rename bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/{CashInventory_fastInputCashInventoryLine.xml => CashInventory_viewLineFastInputDialog.xml} (78%)

diff --git a/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fast_Input.xml b/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fastinput.xml
similarity index 91%
rename from bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fast_Input.xml
rename to bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fastinput.xml
index 6f25be0c32..6c0feb3fef 100644
--- a/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fast_Input.xml
+++ b/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/fastinput.xml
@@ -42,7 +42,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>fast_Input</string> </value>
+            <value> <string>fastinput</string> </value>
         </item>
         <item>
             <key> <string>optional</string> </key>
@@ -62,7 +62,7 @@
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Saisie Billetage</string> </value>
+            <value> <string>Cash Detail</string> </value>
         </item>
         <item>
             <key> <string>visible</string> </key>
@@ -85,7 +85,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/CashInventory_fastInputCashInventoryLine</string> </value>
+            <value> <string>string:${object_url}/CashInventory_viewLineFastInputDialog</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/history.xml b/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/history.xml
new file mode 100644
index 0000000000..89619e8659
--- /dev/null
+++ b/bt5/erp5_banking_inventory/ActionTemplateItem/portal_types/Cash%20Inventory/history.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.ActionInformation</string>
+          <string>ActionInformation</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>history</string> </value>
+        </item>
+        <item>
+            <key> <string>optional</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1.5</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>History</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.Expression</string>
+          <string>Expression</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_fastInputCashInventoryLine.xml b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml
similarity index 78%
rename from bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_fastInputCashInventoryLine.xml
rename to bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml
index a37fe3ad19..8a0975f49b 100644
--- a/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_fastInputCashInventoryLine.xml
+++ b/bt5/erp5_banking_inventory/SkinTemplateItem/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog.xml
@@ -88,25 +88,25 @@ if redirect_url is not None:\n
 if currency_id == context.Baobab_getPortalReferenceCurrencyID():\n
   letter_list      = None\n
   variation_list   = None\n
-  cash_status_list = None \n
+  cash_status_list = None\n
 else:\n
   letter_list      = [\'not_defined\']\n
   variation_list   = [\'not_defined\']\n
   cash_status_list = [\'valid\']\n
 \n
-cash_detail_parameters = { \'line_portalType\'         : \'Cash Inventory Line\'\n
-                         , \'operation_currency\'      : context.getPriceCurrencyId()\n
-                         , \'cashStatus_list\'         : cash_status_list\n
-                         , \'emissionLetter_list\'     : letter_list\n
-                         , \'variation_list\'          : variation_list \n
-                         , \'currencyCash_portalType\' : None              # \'Cash Movement Cell\'?\n
-                         , \'updatePossible\'          : True  \n
-                         , \'columnBase\'              : \'variation\'\n
-                         , \'useInventory\'            : 1\n
-                         }\n
+cash_detail_dict = {\'line_portal_type\'           : \'Cash Inventory Line\'\n
+                    , \'operation_currency\'       : context.getPriceCurrencyId()\n
+                    , \'cash_status_list\'         : cash_status_list\n
+                    , \'emission_letter_list\'     : letter_list\n
+                    , \'variation_list\'           : variation_list\n
+                    , \'currency_cash_portal_type\': None\n
+                    , \'read_only\'                : True\n
+                    , \'column_base_category\'     : \'variation\'\n
+                    , \'use_inventory\'            : 1\n
+                    }\n
 \n
-return context.CashDetail_fastInputUpdate( listbox              = None\n
-                                         , cashDetail_parameter = cash_detail_parameters\n
+return context.CashDelivery_generateCashDetailInputDialog( listbox              = None\n
+                                         , cash_detail_dict = cash_detail_dict\n
                                          , destination          = context.getObject().absolute_url())\n
 </string> </value>
         </item>
@@ -116,9 +116,15 @@ return context.CashDetail_fastInputUpdate( listbox              = None\n
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_dav_writelocks</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_inventory/CashInventory_fastInputCashInventoryLine</string> </value>
+            <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_inventory/CashInventory_viewLineFastInputDialog</string> </value>
         </item>
         <item>
             <key> <string>_owner</string> </key>
@@ -165,7 +171,7 @@ return context.CashDetail_fastInputUpdate( listbox              = None\n
                             <string>variation_list</string>
                             <string>cash_status_list</string>
                             <string>True</string>
-                            <string>cash_detail_parameters</string>
+                            <string>cash_detail_dict</string>
                           </tuple>
                         </value>
                     </item>
@@ -182,7 +188,7 @@ return context.CashDetail_fastInputUpdate( listbox              = None\n
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>CashInventory_fastInputCashInventoryLine</string> </value>
+            <value> <string>CashInventory_viewLineFastInputDialog</string> </value>
         </item>
         <item>
             <key> <string>warnings</string> </key>
@@ -193,4 +199,25 @@ return context.CashDetail_fastInputUpdate( listbox              = None\n
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Persistence</string>
+          <string>PersistentMapping</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_container</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_banking_inventory/bt/template_action_path_list b/bt5/erp5_banking_inventory/bt/template_action_path_list
index 01edb79a45..3c8bd8c6c7 100644
--- a/bt5/erp5_banking_inventory/bt/template_action_path_list
+++ b/bt5/erp5_banking_inventory/bt/template_action_path_list
@@ -8,6 +8,7 @@ Cash Inventory Group | view
 Cash Inventory Line | metadata
 Cash Inventory Line | view
 Cash Inventory Module | view
-Cash Inventory | fast_Input
+Cash Inventory | fastinput
+Cash Inventory | history
 Cash Inventory | metadata
 Cash Inventory | view
\ No newline at end of file
-- 
2.30.9