From 90dc16345cf64a174810f915f777db1078068da1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 16 Apr 2010 06:59:28 +0000
Subject: [PATCH] remove custom add action for balance transaction

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34609 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../add_balance_transaction_line.xml          | 85 -------------------
 .../hidden_content_type_list.xml              |  3 -
 bt5/erp5_accounting/bt/revision               |  2 +-
 .../bt/template_action_path_list              |  1 -
 ...plate_portal_type_hidden_content_type_list |  1 -
 5 files changed, 1 insertion(+), 91 deletions(-)
 delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Balance%20Transaction/add_balance_transaction_line.xml

diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Balance%20Transaction/add_balance_transaction_line.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Balance%20Transaction/add_balance_transaction_line.xml
deleted file mode 100644
index 15752feaa8..0000000000
--- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Balance%20Transaction/add_balance_transaction_line.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>categories</string> </key>
-            <value>
-              <tuple>
-                <string>action_type/object_add</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_add</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>add_balance_transaction_line</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Add portal content</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>6.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Accounting Transaction Line</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>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/AccountingTransaction_addAccountingTransactionLine?portal_type=Balance+Transaction+Line</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index 5410a43073..abfd18b808 100644
--- a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -9,9 +9,6 @@
  <portal_type id="Accounting Transaction Module">
   <item>Balance Transaction</item>
  </portal_type>
- <portal_type id="Balance Transaction">
-  <item>Balance Transaction Line</item>
- </portal_type>
  <portal_type id="Payment Transaction">
   <item>File</item>
   <item>Image</item>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 57f15eca80..95fa1c9dbe 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-1185
\ No newline at end of file
+1186
\ No newline at end of file
diff --git a/bt5/erp5_accounting/bt/template_action_path_list b/bt5/erp5_accounting/bt/template_action_path_list
index ddce2133fc..014160c4c9 100644
--- a/bt5/erp5_accounting/bt/template_action_path_list
+++ b/bt5/erp5_accounting/bt/template_action_path_list
@@ -48,7 +48,6 @@ Accounting Transaction | profile_view
 Accounting Transaction | source_asset
 Accounting Transaction | view
 Balance Transaction Line | view
-Balance Transaction | add_balance_transaction_line
 Balance Transaction | destination_asset
 Balance Transaction | view
 Bank Account | jump_active_accounting_pref
diff --git a/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
index 59115ae0f9..24056ccd59 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_hidden_content_type_list
@@ -2,7 +2,6 @@ Accounting Rule Cell | Accounting Transaction Line
 Accounting Transaction Module | Balance Transaction
 Accounting Transaction | File
 Accounting Transaction | Image
-Balance Transaction | Balance Transaction Line
 Payment Transaction | File
 Payment Transaction | Image
 Preference | Accounting Transaction
-- 
2.30.9