From 274ca5974aa81dc0ed8729e56bfd4cf27d45536b Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Mon, 18 Aug 2008 09:27:29 +0000
Subject: [PATCH] * add allowed content types on forms portal_types to be able
 to add attachment on all forms. * remove old and unused base category
 (collateral_parent, ...)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23013 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../allowed_content_types.xml                 | 28 +++++++++++++++++--
 .../base_category_list.xml                    |  6 ----
 ...late_portal_type_allowed_content_type_list | 20 ++++++++++++-
 .../template_portal_type_base_category_list   |  9 +-----
 4 files changed, 46 insertions(+), 17 deletions(-)

diff --git a/bt5/erp5_registry_ohada/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_registry_ohada/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 6e64849e76..99341c99e9 100644
--- a/bt5/erp5_registry_ohada/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_registry_ohada/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -1,8 +1,8 @@
 <allowed_content_type_list>
  <portal_type id="M0">
-  <item>File</item>
   <item>PDF</item>
   <item>M0 Bis</item>
+  <item>File</item>
  </portal_type>
  <portal_type id="M0 Module">
   <item>M0</item>
@@ -15,15 +15,21 @@
  <portal_type id="M2 Module">
   <item>M2</item>
  </portal_type>
+ <portal_type id="M4">
+  <item>Image</item>
+  <item>File</item>
+  <item>PDF</item>
+  <item>Text</item>
+ </portal_type>
  <portal_type id="M4 Module">
   <item>M4</item>
  </portal_type>
  <portal_type id="Organisation">
   <item>Address</item>
   <item>Link</item>
+  <item>Telephone</item>
   <item>Bank Account</item>
   <item>Fax</item>
-  <item>Telephone</item>
   <item>Credit Card</item>
   <item>Document</item>
   <item>Email</item>
@@ -34,22 +40,28 @@
   <item>Organisation</item>
  </portal_type>
  <portal_type id="P0">
+  <item>Text</item>
   <item>PDF</item>
+  <item>Image</item>
   <item>File</item>
  </portal_type>
  <portal_type id="P0 Module">
   <item>P0</item>
  </portal_type>
  <portal_type id="P2">
+  <item>Image</item>
   <item>PDF</item>
   <item>File</item>
+  <item>Text</item>
  </portal_type>
  <portal_type id="P2 Module">
   <item>P2</item>
  </portal_type>
  <portal_type id="P4">
+  <item>Text</item>
   <item>PDF</item>
   <item>File</item>
+  <item>Image</item>
  </portal_type>
  <portal_type id="P4 Module">
   <item>P4</item>
@@ -70,9 +82,21 @@
  <portal_type id="Person Module">
   <item>Person</item>
  </portal_type>
+ <portal_type id="S1">
+  <item>PDF</item>
+  <item>Image</item>
+  <item>Text</item>
+  <item>File</item>
+ </portal_type>
  <portal_type id="S1 Module">
   <item>S1</item>
  </portal_type>
+ <portal_type id="S5">
+  <item>PDF</item>
+  <item>File</item>
+  <item>Text</item>
+  <item>Image</item>
+ </portal_type>
  <portal_type id="S5 Module">
   <item>S5</item>
  </portal_type>
diff --git a/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index bbeb0528d6..a85ad6930b 100644
--- a/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -21,9 +21,7 @@
   <item>follow_up</item>
  </portal_type>
  <portal_type id="Organisation">
-  <item>inscription_parent</item>
   <item>role</item>
-  <item>collateral_parent</item>
  </portal_type>
  <portal_type id="Organisation Module">
   <item>business_application</item>
@@ -44,8 +42,6 @@
   <item>aggregate</item>
  </portal_type>
  <portal_type id="Person">
-  <item>inscription_parent</item>
-  <item>collateral_parent</item>
   <item>destination_form</item>
  </portal_type>
  <portal_type id="Person Module">
@@ -54,11 +50,9 @@
  <portal_type id="S1">
   <item>follow_up</item>
   <item>destination_form</item>
-  <item>collateral_parent</item>
  </portal_type>
  <portal_type id="S5">
   <item>destination_form</item>
-  <item>inscription_parent</item>
   <item>follow_up</item>
  </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_registry_ohada/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_registry_ohada/bt/template_portal_type_allowed_content_type_list
index e7bd87ec84..46c8324efc 100644
--- a/bt5/erp5_registry_ohada/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_registry_ohada/bt/template_portal_type_allowed_content_type_list
@@ -7,6 +7,10 @@ M2 | File
 M2 | M2 Bis
 M2 | PDF
 M4 Module | M4
+M4 | File
+M4 | Image
+M4 | PDF
+M4 | Text
 Organisation Module | Organisation
 Organisation | Address
 Organisation | Bank Account
@@ -20,13 +24,19 @@ Organisation | Link
 Organisation | Telephone
 P0 Module | P0
 P0 | File
+P0 | Image
 P0 | PDF
+P0 | Text
 P2 Module | P2
 P2 | File
+P2 | Image
 P2 | PDF
+P2 | Text
 P4 Module | P4
 P4 | File
+P4 | Image
 P4 | PDF
+P4 | Text
 Person Module | Person
 Person | Address
 Person | Assignment
@@ -40,4 +50,12 @@ Person | Image
 Person | Link
 Person | Telephone
 S1 Module | S1
-S5 Module | S5
\ No newline at end of file
+S1 | File
+S1 | Image
+S1 | PDF
+S1 | Text
+S5 Module | S5
+S5 | File
+S5 | Image
+S5 | PDF
+S5 | Text
\ No newline at end of file
diff --git a/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list b/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
index 5921cf1fec..1d14646203 100644
--- a/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
@@ -8,8 +8,6 @@ M4 | destination_form
 M4 | follow_up
 Mail Message | follow_up
 Organisation Module | business_application
-Organisation | collateral_parent
-Organisation | inscription_parent
 Organisation | role
 P0 | destination_form
 P0 | follow_up
@@ -19,13 +17,8 @@ P4 | destination_form
 P4 | follow_up
 PDF | aggregate
 Person Module | business_application
-Person | collateral_parent
 Person | destination_form
-Person | destination_form
-Person | inscription_parent
-S1 | collateral_parent
 S1 | destination_form
 S1 | follow_up
 S5 | destination_form
-S5 | follow_up
-S5 | inscription_parent
\ No newline at end of file
+S5 | follow_up
\ No newline at end of file
-- 
2.30.9