diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Address.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Address.xml
index 5c5db6c0ca363f4d4af559696c32adcb8ec38077..81dc25dc8ab0331fecc1fa669cfdf882614442cf 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Address.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Address.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent%20Privilege.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent%20Privilege.xml
index 5d936f31d868b51fd38b94824aba1a41f65aa7f6..5ae6d9bfa5214adba1ad91bba141a84567efbd4c 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent%20Privilege.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent%20Privilege.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent.xml
index 270b5e5db9318f18de791749c07176e306734beb..c81d36e5afd9c847238a54fbc453b1a27be8b7b9 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Agent.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm%20Tool.xml
index 4795fbe922535c8757f92f97de6a3589ab54fd74..aded8894ed4b5cced57be89bb6e7d79d8a691302 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm.xml
index 5035a4303d26826fe7a21a14b1df3fa56ec130b3..fc6b3a02add2b384cfe9a430efbe08dda792b443 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Alarm.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Applied%20Rule.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Applied%20Rule.xml
index 7cadca3795f02c9ac22c0236a0dfd2dc6e6aa978..78c6d97c137331d1ac9f1c46ea2c5b05e55c5975 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Applied%20Rule.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Applied%20Rule.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Assignment.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Assignment.xml
index dd0a4b5e08fd489a53c2b4156d0dc822dc7f098b..215c566ae0e941133676200529d7b4f550163723 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Assignment.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Assignment.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Bank%20Account.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Bank%20Account.xml
index ca5d3c53d955519f6c76af4fd875a16bedc003b4..59c16dfd9e330129c413d625ccd5c0171eeb115f 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Bank%20Account.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Bank%20Account.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Base%20Category.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Base%20Category.xml
index 4136077a379c673c2edff7a9420e8b806dfeaafc..32514bef53a32ca442b84d34312cd4115135f58c 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Base%20Category.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Base%20Category.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Career.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Career.xml
index aad92eb723615d4188fc49334482496204d121e8..5449632555c36b4ab3878dee51b794cee9f0ee75 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Career.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Career.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Tool.xml
index 5f9c9098fdd6796b8c3174602977f1a16712a44d..2955e7a9c0545da0d17c251e72a6debfc4f2a364 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category.xml
index 05dff5488583f4a76252d2c7d46387119a713701..1fa46b9d3e7a8e66ee3fc8a3b40aefd859da360c 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Category.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/ChatAddress.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/ChatAddress.xml
index 95369c5a142fc3e5a017f3c05b5179001c07ed16..fb2f64ee83acd689dd191682be358c151e1ec985 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/ChatAddress.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/ChatAddress.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Credit%20Card.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Credit%20Card.xml
index 363323b1f1091032e64eba201b60b0ea7cba1c6c..003a980c14430252e3149fa28c9a955662c1994a 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Credit%20Card.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Credit%20Card.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Exchange%20Line.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Exchange%20Line.xml
index 6a02037e55de9bb9cb2cb81e3b85a040e94b0032..9f11d63e1130dfbd04841393cb7c89e91db35067 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Exchange%20Line.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Exchange%20Line.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Module.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Module.xml
index 91d2e59f682ec3a0b4d62343b5b1d769cae9bb23..eb635dbd8373440b5d14b4d279aa6c26c182346b 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Module.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency%20Module.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency.xml
index a0a6cb1d078bbf87fd8efdddb3836c343cb7fa0f..bf756c2eb4e3e443e86238afe08c0101cc7c623b 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Currency.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Builder.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Builder.xml
index 71d598cddfcddd2bcd02836b4aba525398328ec6..e1529b3a870878f76526bdb72a4d031b9831ec17 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Builder.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Builder.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Tool.xml
index 9da3cb6208bb06cf9f2b2d412dc18d75a1fe6689..91ea5944116caab7f0bdcc4a680573d33e16510b 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Delivery%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Document.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Document.xml
index 79b1940aaae4896887349e85d523f93d7bab297c..9f655d812a8cd7dae093a92c3ad00f61dddad5d8 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Document.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Document.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Email.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Email.xml
index 5ff566e7d5e0b46209dfcff008f10317e5f44927..34782445fd88fe6339996a8bb98c1cc43db90a84 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Email.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Email.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Fax.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Fax.xml
index cd8241c809ce52c08e98f3eff470c71d93f217b5..c00355b393e41fc4993024075ec3b6a6f2eb6f63 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Fax.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Fax.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/File.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/File.xml
index d7f9efd0eb6632a90ea9d505ec56e224152b44f9..d2a6cd99155f439683f6553d70bbb7c8cb8bac66 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/File.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/File.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Folder.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Folder.xml
index ad9eaabc521356ded40840eecfd826ebdf549584..89019df0d69f229d8a1a26d7af1b33d2875358ab 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Folder.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Folder.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Image.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Image.xml
index 929eccfb9459b1df67da3562b8a642eda1fad72c..fc023e56d35e9da899cfe4ca57d0a5cdccf6aa5d 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Image.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Image.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Mapped%20Value.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Mapped%20Value.xml
index d6aae60fc7b0a7b9b6597278236a241001dbb749..8cce62c1b765da12bdde2d0e625184e6b23b444e 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Mapped%20Value.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Mapped%20Value.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Builder.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Builder.xml
index ccc3cd6a40f4e6e6f2b1e15e1df5361b9e9b3361..1828fa29ad2e35d117061eb79b4015dd5b9e4d06 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Builder.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Builder.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Tool.xml
index f299e34467eed70f510f7db6b7e6451885cd67b5..ac1908cef53d6c4a4e366f6eadc00d7093e08646 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Order%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation%20Module.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation%20Module.xml
index 06ec14ae9bb5a31cccf6c98ae752d94be7ef9160..8093089fbbc0b57990215e56a4c5960fe15843fb 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation%20Module.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation%20Module.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation.xml
index a2aad7965bba43953ebb0293be7e1fb91ca1801b..69b7fd0f41be999e4857f26984222443b14daf24 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Organisation.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person%20Module.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person%20Module.xml
index 41ba117b119a05a5ab13f700bedede58f1b4dd3c..c0c9857b79f0f70650d1f769b07e21b25c6d9a35 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person%20Module.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person%20Module.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person.xml
index 2ec8ad73181dbf9e1a3001361f7f97bea9b22724..4234ebbb882988ff7bb613697db31d5f78b05587 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Person.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
index 05ea0643fa7c89584638e8defe952ec8e5e15fcc..627eb68295916c94cd62469dac3e9f155aee4d49 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference%20Tool.xml
index d66ac0f9fa35bbda5ea5ccd8458d8afd7408a96c..b444148472d6424715a27f29a1622467649cd204 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference.xml
index c9ebf3cd948e0cf376655cfc196669c0ff05ac97..af0d94899caed8f26c112bfd31f9a3b6b5f46acb 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Preference.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Route%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Route%20Tool.xml
index 50e1c31574dab6febe59ba716842269a0ce9be81..1abaa17d0cc34f7d57b00c96354ebf539aa6fa73 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Route%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Route%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
index 8a062dbb6d4533957e6db4495e65465c7e610522..fa5c83bc4e13fd7273e94ea949dc3c5a302cfa86 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Movement.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Movement.xml
index 05ee570afad8adf7257465f6ca6f983c0dbfc02f..83ab87c92d9811a154d1d9fc785d660f32e1f9e0 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Movement.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Movement.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Tool.xml
index 55a68c4a57ffd009d7e81c3eacb187ff7e60d336..5e7b72f51a02b0445085b9881fbc4f6caa9b5b11 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Simulation%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Telephone.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Telephone.xml
index 2ae441ffdb22463df7e2fbad28287ca73c31ef47..11bb3fd91608bdc79db240c87334a497b2d32a23 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Telephone.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Telephone.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Template%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Template%20Tool.xml
index 98741594e890016ff7538529ad17d405d3105c95..8b4f63be136a0bf8aa085b3b245c2d1b5097d452 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Template%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Template%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Bin.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Bin.xml
index 82a6bbdb76d365ea81c0adaf9eb8c87a4ca07037..b2ecb8beab46e0941f6eadc7a143565e6ac63dfb 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Bin.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Bin.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Folder.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Folder.xml
index a91f76a9ebaf0336c70d400ce298524467a63969..cd4a57ee34547f85fee6201b345f16c836fe3ba4 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Folder.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Folder.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Tool.xml
index 7059c05f3f03e99ef2b6f1cc7a78ba2ec6017d26..8ca9098810767a3c0589d89141c8dae4df96333e 100755
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Trash%20Tool.xml
@@ -30,6 +30,12 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>_roles</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
         <item>
             <key> <string>acquire_local_roles</string> </key>
             <value> <int>1</int> </value>