From 8196cbad245681649a200fa3e6d01476bfb8f5fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sat, 17 Feb 2007 12:59:21 +0000
Subject: [PATCH] fix portal types allowed/hidden content types for Cash
 Register and Closing Transaction.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12853 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../allowed_content_types.xml                                   | 2 ++
 .../hidden_content_type_list.xml                                | 1 +
 bt5/erp5_accounting/bt/revision                                 | 2 +-
 .../bt/template_portal_type_allowed_content_type_list           | 2 ++
 .../bt/template_portal_type_hidden_content_type_list            | 1 +
 5 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 486e484d09..d00dd345f3 100644
--- a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -10,6 +10,7 @@
  </portal_type>
  <portal_type id="Accounting Transaction Module">
   <item>Purchase Invoice Transaction</item>
+  <item>Closing Transaction</item>
   <item>Accounting Transaction</item>
   <item>Sale Invoice Transaction</item>
   <item>Payment Transaction</item>
@@ -47,6 +48,7 @@
  </portal_type>
  <portal_type id="Organisation">
   <item>Accounting Period</item>
+  <item>Cash Register</item>
  </portal_type>
  <portal_type id="Payment Rule">
   <item>Property Divergence Tester</item>
diff --git a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index 9e48f936a3..fcadb6054b 100644
--- a/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_accounting/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -3,6 +3,7 @@
   <item>Accounting Transaction Line</item>
  </portal_type>
  <portal_type id="Accounting Transaction Module">
+  <item>Closing Transaction</item>
   <item>Balance Transaction</item>
  </portal_type>
  <portal_type id="Balance Transaction">
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index a5b5e0f805..80945bc436 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-181
\ No newline at end of file
+183
\ No newline at end of file
diff --git a/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
index 0658c5d24c..c62497b2c7 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
@@ -2,6 +2,7 @@ Account Module | Account
 Accounting Rule Cell | Accounting Transaction Line
 Accounting Transaction Module | Accounting Transaction
 Accounting Transaction Module | Balance Transaction
+Accounting Transaction Module | Closing Transaction
 Accounting Transaction Module | Payment Transaction
 Accounting Transaction Module | Purchase Invoice Transaction
 Accounting Transaction Module | Sale Invoice Transaction
@@ -23,6 +24,7 @@ Invoicing Rule | Category Divergence Tester
 Invoicing Rule | Property Divergence Tester
 Invoicing Rule | Quantity Divergence Tester
 Organisation | Accounting Period
+Organisation | Cash Register
 Payment Rule | Category Divergence Tester
 Payment Rule | Property Divergence Tester
 Payment Rule | Quantity Divergence Tester
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 2022b532fb..e28d76e3f2 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
@@ -1,4 +1,5 @@
 Accounting Transaction Module | Balance Transaction
+Accounting Transaction Module | Closing Transaction
 Accounting Transaction | Accounting Transaction Line
 Balance Transaction | Balance Transaction Line
 Closing Transaction | Closing Transaction Line
-- 
2.30.9