From 73fdd44831b329e16f984ecc15717b45b4e4c5e3 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Wed, 15 Feb 2006 13:27:44 +0000
Subject: [PATCH] added Supply Line as a allowed/hidden subobject of Product

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5703 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../allowed_content_types.xml                                | 5 ++++-
 .../hidden_content_type_list.xml                             | 3 +++
 .../bt/template_portal_type_allowed_content_type_list        | 1 +
 .../bt/template_portal_type_hidden_content_type_list         | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 39b57a8080..012d4629e8 100755
--- a/bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -5,6 +5,9 @@
  <portal_type id="Component Module">
   <item>Component</item>
  </portal_type>
+ <portal_type id="Product">
+  <item>Supply Line</item>
+ </portal_type>
  <portal_type id="Product Module">
   <item>Product</item>
  </portal_type>
@@ -12,8 +15,8 @@
   <item>Service</item>
  </portal_type>
  <portal_type id="Transformation">
-  <item>Transformation Optional Resource</item>
   <item>Transformation Operation</item>
+  <item>Transformation Optional Resource</item>
   <item>Transformation Transformed Resource</item>
  </portal_type>
  <portal_type id="Transformation Module">
diff --git a/bt5/erp5_pdm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_pdm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index 8517d8fe8a..51dafd8c05 100755
--- a/bt5/erp5_pdm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_pdm/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -2,6 +2,9 @@
  <portal_type id="Component">
   <item>Supply Line</item>
  </portal_type>
+ <portal_type id="Product">
+  <item>Supply Line</item>
+ </portal_type>
  <portal_type id="Transformation Transformed Resource">
   <item>Mapped Value</item>
  </portal_type>
diff --git a/bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list
index bfe5c650b1..86298357a4 100755
--- a/bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list
@@ -1,6 +1,7 @@
 Component Module | Component
 Component | Supply Line
 Product Module | Product
+Product | Supply Line
 Service Module | Service
 Transformation Module | Transformation
 Transformation Operation | Mapped Value
diff --git a/bt5/erp5_pdm/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_pdm/bt/template_portal_type_hidden_content_type_list
index 9f34ad068c..180f6e4aa7 100755
--- a/bt5/erp5_pdm/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_pdm/bt/template_portal_type_hidden_content_type_list
@@ -1,2 +1,3 @@
 Component | Supply Line
+Product | Supply Line
 Transformation Transformed Resource | Mapped Value
\ No newline at end of file
-- 
2.30.9