From 52231cfa9d3c52a4a0b9a983d873f73548db1a8d Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Mon, 27 Jul 2015 07:47:24 +0000
Subject: [PATCH] erp5_pdm: XML changes

---
 .../portal_types/Component%20Individual%20Variation.xml       | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Component.xml         | 4 ++++
 .../portal_types/Internal%20Supply%20Cell.xml                 | 4 ++++
 .../portal_types/Internal%20Supply%20Line.xml                 | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Internal%20Supply.xml | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Measure%20Cell.xml    | 4 ++++
 bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure.xml  | 4 ++++
 .../portal_types/Product%20Individual%20Variation.xml         | 4 ++++
 bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product.xml  | 4 ++++
 .../portal_types/Purchase%20Supply%20Cell.xml                 | 4 ++++
 .../portal_types/Purchase%20Supply%20Line.xml                 | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Purchase%20Supply.xml | 4 ++++
 .../Quantity%20Unit%20Conversion%20Definition.xml             | 4 ++++
 .../portal_types/Quantity%20Unit%20Conversion%20Group.xml     | 4 ++++
 .../portal_types/Sale%20Supply%20Cell.xml                     | 4 ++++
 .../portal_types/Sale%20Supply%20Line.xml                     | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Sale%20Supply.xml     | 4 ++++
 .../portal_types/Service%20Individual%20Variation.xml         | 4 ++++
 bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service.xml  | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Supply%20Cell.xml     | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Supply%20Line.xml     | 4 ++++
 .../portal_types/Transformation%20Operation.xml               | 4 ++++
 .../portal_types/Transformation%20Optional%20Resource.xml     | 4 ++++
 .../portal_types/Transformation%20Transformed%20Resource.xml  | 4 ++++
 .../PortalTypeTemplateItem/portal_types/Transformation.xml    | 4 ++++
 25 files changed, 100 insertions(+)

diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component%20Individual%20Variation.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component%20Individual%20Variation.xml
index 34a65b014d..e17c039fc2 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component%20Individual%20Variation.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component%20Individual%20Variation.xml
@@ -54,6 +54,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Variation</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component.xml
index 0561ffcc58..8bbb667145 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Component.xml
@@ -65,6 +65,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Resource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Cell.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Cell.xml
index ab7ecdafd2..442bbe0cab 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Cell.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Cell.xml
@@ -58,6 +58,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyCell</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Line.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Line.xml
index e2c08984a3..25638070ed 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Line.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply%20Line.xml
@@ -85,6 +85,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyLine</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply.xml
index 4f5d6f5eac..4ccc690560 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Internal%20Supply.xml
@@ -77,6 +77,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Supply</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure%20Cell.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure%20Cell.xml
index a3f255fc8c..e25fafea9d 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure%20Cell.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure%20Cell.xml
@@ -52,6 +52,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>MappedValue</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure.xml
index d1d73060e9..790c245412 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Measure.xml
@@ -52,6 +52,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Measure</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml
index 5cfd02c42a..b3ac6146db 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml
@@ -54,6 +54,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Variation</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product.xml
index 6163598746..9fddf3d876 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product.xml
@@ -74,6 +74,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Resource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Cell.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Cell.xml
index 8f336fb462..ebf57a8580 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Cell.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Cell.xml
@@ -54,6 +54,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyCell</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Line.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Line.xml
index 121304e4d1..a6b36797a8 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Line.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply%20Line.xml
@@ -64,6 +64,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyLine</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply.xml
index 40b17801d8..92e27b22b9 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Purchase%20Supply.xml
@@ -77,6 +77,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Supply</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Definition.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Definition.xml
index 8cc8a37f3f..ecc6a14da8 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Definition.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Definition.xml
@@ -52,6 +52,10 @@
             <key> <string>product</string> </key>
             <value> <string>ERP5Type</string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>QuantityUnitConversionDefinition</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Group.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Group.xml
index debe596dc4..eda4cb8ef7 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Group.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Quantity%20Unit%20Conversion%20Group.xml
@@ -61,6 +61,10 @@
             <key> <string>portal_type</string> </key>
             <value> <string>Base Type</string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>QuantityUnitConversionGroup</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Cell.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Cell.xml
index 3508660df7..056e0afe58 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Cell.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Cell.xml
@@ -50,6 +50,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyCell</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Line.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Line.xml
index 9e0f77566f..b742550451 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Line.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply%20Line.xml
@@ -60,6 +60,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyLine</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply.xml
index 7ede086f75..7240411191 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Sale%20Supply.xml
@@ -77,6 +77,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Supply</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service%20Individual%20Variation.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service%20Individual%20Variation.xml
index d01605e21c..bd12b0c55d 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service%20Individual%20Variation.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service%20Individual%20Variation.xml
@@ -54,6 +54,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Variation</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service.xml
index 01e880e170..b51c040b4c 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Service.xml
@@ -57,6 +57,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Resource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Cell.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Cell.xml
index 0c47eb2ee1..3e6514b5df 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Cell.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Cell.xml
@@ -50,6 +50,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyCell</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Line.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Line.xml
index 52799b613d..1b10cdc695 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Line.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Supply%20Line.xml
@@ -60,6 +60,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SupplyLine</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Operation.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Operation.xml
index d17ba1ac2e..872fa59fea 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Operation.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Operation.xml
@@ -80,6 +80,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>TransformedResource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Optional%20Resource.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Optional%20Resource.xml
index f2b4ee5cbd..ac6d471880 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Optional%20Resource.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Optional%20Resource.xml
@@ -80,6 +80,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>TransformedResource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Transformed%20Resource.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Transformed%20Resource.xml
index f680475879..87331b7a33 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Transformed%20Resource.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation%20Transformed%20Resource.xml
@@ -80,6 +80,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>TransformedResource</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation.xml b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation.xml
index c2a722770b..daea747422 100644
--- a/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation.xml
+++ b/bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Transformation.xml
@@ -82,6 +82,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>Transformation</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
-- 
2.30.9