From 27baefee99085ef98a402acd14699915de002f9c Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 26 Jan 2006 13:45:30 +0000
Subject: [PATCH] Business template format upgrade.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5339 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_categories/client.xml              |  11 +-
 .../ModuleTemplateItem/event_module.xml       |  12 +
 .../sale_opportunity_module.xml               |  12 +
 .../support_request_module.xml                |  12 +
 .../allowed_content_types.xml                 |  35 ++
 .../portal_types/Event%20Module.xml           | 184 +--------
 .../portal_types/Incoming%20Fax.xml           | 343 +----------------
 .../portal_types/Incoming%20Letter.xml        | 351 +----------------
 .../portal_types/Mail%20Message.xml           | 355 +----------------
 .../portal_types/Phone%20Call.xml             | 343 +----------------
 .../Sale%20Opportunity%20Module.xml           | 181 +--------
 .../portal_types/Sale%20Opportunity.xml       | 356 +----------------
 .../Support%20Request%20Module.xml            | 183 +--------
 .../portal_types/Support%20Request.xml        | 358 +-----------------
 .../EventModule_createEventFromMail.xml       |  74 +---
 .../erp5_crm/Event_createSaleOpportunity.xml  |  21 +-
 .../erp5_crm/Event_createSupportRequest.xml   |  21 +-
 .../erp5_crm/PersonModule_viewEmailReport.xml |  24 +-
 .../erp5_crm/SaleOpportunity_view.xml         |   2 +-
 .../scripts/Event_createSaleOpportunity.xml   |  11 +-
 .../scripts/Event_createSupportRequest.xml    |  11 +-
 .../scripts/Event_replyMailMessage.xml        |  17 +-
 .../scripts/test_error_message.xml            |  24 +-
 .../scripts/validate_user_action.xml          |  13 +-
 .../scripts/validate_user_assign.xml          |  26 +-
 .../scripts/mail_message.xml                  |  22 +-
 bt5/erp5_crm/bt/copyright_list                |   0
 bt5/erp5_crm/bt/license                       |   0
 bt5/erp5_crm/bt/revision                      |   0
 bt5/erp5_crm/bt/template_action_path_list     |  30 ++
 .../bt/template_catalog_full_text_key_list    |   0
 .../bt/template_catalog_keyword_key_list      |   0
 .../bt/template_catalog_multivalue_key_list   |   0
 .../bt/template_catalog_request_key_list      |   0
 .../bt/template_catalog_topic_key_list        |   0
 bt5/erp5_crm/bt/template_constraint_id_list   |   0
 bt5/erp5_crm/bt/template_local_roles_list     |   0
 ...late_portal_type_allowed_content_type_list |  21 +
 .../template_portal_type_base_category_list   |   0
 ...plate_portal_type_hidden_content_type_list |   0
 .../template_portal_type_property_sheet_list  |   0
 .../bt/template_portal_type_roles_list        |   0
 42 files changed, 255 insertions(+), 2798 deletions(-)
 create mode 100755 bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
 create mode 100755 bt5/erp5_crm/bt/copyright_list
 create mode 100755 bt5/erp5_crm/bt/license
 create mode 100755 bt5/erp5_crm/bt/revision
 create mode 100755 bt5/erp5_crm/bt/template_catalog_full_text_key_list
 create mode 100755 bt5/erp5_crm/bt/template_catalog_keyword_key_list
 create mode 100755 bt5/erp5_crm/bt/template_catalog_multivalue_key_list
 create mode 100755 bt5/erp5_crm/bt/template_catalog_request_key_list
 create mode 100755 bt5/erp5_crm/bt/template_catalog_topic_key_list
 create mode 100755 bt5/erp5_crm/bt/template_constraint_id_list
 create mode 100755 bt5/erp5_crm/bt/template_local_roles_list
 create mode 100755 bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list
 create mode 100755 bt5/erp5_crm/bt/template_portal_type_base_category_list
 create mode 100755 bt5/erp5_crm/bt/template_portal_type_hidden_content_type_list
 create mode 100755 bt5/erp5_crm/bt/template_portal_type_property_sheet_list
 create mode 100755 bt5/erp5_crm/bt/template_portal_type_roles_list

diff --git a/bt5/erp5_crm/CategoryTemplateItem/portal_categories/client.xml b/bt5/erp5_crm/CategoryTemplateItem/portal_categories/client.xml
index 7181e90f5e..cbac5fdd1a 100755
--- a/bt5/erp5_crm/CategoryTemplateItem/portal_categories/client.xml
+++ b/bt5/erp5_crm/CategoryTemplateItem/portal_categories/client.xml
@@ -15,16 +15,7 @@
         <item>
             <key> <string>__ac_local_roles__</string> </key>
             <value>
-              <dictionary>
-                <item>
-                    <key> <string>jp</string> </key>
-                    <value>
-                      <list>
-                        <string>Owner</string>
-                      </list>
-                    </value>
-                </item>
-              </dictionary>
+              <none/>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/ModuleTemplateItem/event_module.xml b/bt5/erp5_crm/ModuleTemplateItem/event_module.xml
index e26c592063..26073f0846 100755
--- a/bt5/erp5_crm/ModuleTemplateItem/event_module.xml
+++ b/bt5/erp5_crm/ModuleTemplateItem/event_module.xml
@@ -128,6 +128,9 @@
    <name>Add ERP5 Forms</name>
    <role>Manager</role>
   </permission>
+  <permission>
+   <name>Add ERP5 OOo Templates</name>
+  </permission>
   <permission>
    <name>Add ERP5 PDF Forms</name>
   </permission>
@@ -236,6 +239,9 @@
    <name>Add Pluggable Index</name>
    <role>Manager</role>
   </permission>
+  <permission>
+   <name>Add Portal ZSyncer Tools</name>
+  </permission>
   <permission>
    <name>Add Python Scripts</name>
    <role>Manager</role>
@@ -304,6 +310,9 @@
    <name>Add ZODB Mount Points</name>
    <role>Manager</role>
   </permission>
+  <permission>
+   <name>Add ZSyncers</name>
+  </permission>
   <permission>
    <name>Add Zope Tutorials</name>
    <role>Manager</role>
@@ -733,6 +742,9 @@
    <name>WebDAV access</name>
    <role>Manager</role>
   </permission>
+  <permission>
+   <name>ZSyncer: Use ZSyncer</name>
+  </permission>
   <permission>
    <name>ZopeProfiler: manage</name>
   </permission>
diff --git a/bt5/erp5_crm/ModuleTemplateItem/sale_opportunity_module.xml b/bt5/erp5_crm/ModuleTemplateItem/sale_opportunity_module.xml
index 933c3e55e6..337d8c5883 100755
--- a/bt5/erp5_crm/ModuleTemplateItem/sale_opportunity_module.xml
+++ b/bt5/erp5_crm/ModuleTemplateItem/sale_opportunity_module.xml
@@ -85,6 +85,9 @@
   <permission>
    <name>Add ERP5 Forms</name>
   </permission>
+  <permission>
+   <name>Add ERP5 OOo Templates</name>
+  </permission>
   <permission>
    <name>Add ERP5 PDF Forms</name>
   </permission>
@@ -169,6 +172,9 @@
   <permission>
    <name>Add Pluggable Index</name>
   </permission>
+  <permission>
+   <name>Add Portal ZSyncer Tools</name>
+  </permission>
   <permission>
    <name>Add Python Scripts</name>
   </permission>
@@ -220,6 +226,9 @@
   <permission>
    <name>Add ZODB Mount Points</name>
   </permission>
+  <permission>
+   <name>Add ZSyncers</name>
+  </permission>
   <permission>
    <name>Add Zope Tutorials</name>
   </permission>
@@ -526,6 +535,9 @@
   <permission>
    <name>WebDAV access</name>
   </permission>
+  <permission>
+   <name>ZSyncer: Use ZSyncer</name>
+  </permission>
   <permission>
    <name>ZopeProfiler: manage</name>
   </permission>
diff --git a/bt5/erp5_crm/ModuleTemplateItem/support_request_module.xml b/bt5/erp5_crm/ModuleTemplateItem/support_request_module.xml
index d6432d5961..93456c819c 100755
--- a/bt5/erp5_crm/ModuleTemplateItem/support_request_module.xml
+++ b/bt5/erp5_crm/ModuleTemplateItem/support_request_module.xml
@@ -85,6 +85,9 @@
   <permission>
    <name>Add ERP5 Forms</name>
   </permission>
+  <permission>
+   <name>Add ERP5 OOo Templates</name>
+  </permission>
   <permission>
    <name>Add ERP5 PDF Forms</name>
   </permission>
@@ -169,6 +172,9 @@
   <permission>
    <name>Add Pluggable Index</name>
   </permission>
+  <permission>
+   <name>Add Portal ZSyncer Tools</name>
+  </permission>
   <permission>
    <name>Add Python Scripts</name>
   </permission>
@@ -220,6 +226,9 @@
   <permission>
    <name>Add ZODB Mount Points</name>
   </permission>
+  <permission>
+   <name>Add ZSyncers</name>
+  </permission>
   <permission>
    <name>Add Zope Tutorials</name>
   </permission>
@@ -526,6 +535,9 @@
   <permission>
    <name>WebDAV access</name>
   </permission>
+  <permission>
+   <name>ZSyncer: Use ZSyncer</name>
+  </permission>
   <permission>
    <name>ZopeProfiler: manage</name>
   </permission>
diff --git a/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
new file mode 100755
index 0000000000..a0abb972ef
--- /dev/null
+++ b/bt5/erp5_crm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -0,0 +1,35 @@
+<allowed_content_type_list>
+ <portal_type id="Event Module">
+  <item>Incoming Fax</item>
+  <item>Incoming Letter</item>
+  <item>Phone Call</item>
+  <item>Mail Message</item>
+ </portal_type>
+ <portal_type id="Mail Message">
+  <item>File</item>
+  <item>Image</item>
+  <item>Document</item>
+  <item>News Item</item>
+  <item>Link</item>
+ </portal_type>
+ <portal_type id="Sale Opportunity">
+  <item>Image</item>
+  <item>Document</item>
+  <item>Link</item>
+  <item>File</item>
+ </portal_type>
+ <portal_type id="Sale Opportunity Module">
+  <item>Sale Opportunity</item>
+ </portal_type>
+ <portal_type id="Support Request">
+  <item>Image</item>
+  <item>Document</item>
+  <item>Link</item>
+  <item>File</item>
+  <item>Value Predicate</item>
+  <item>Predicate Group</item>
+ </portal_type>
+ <portal_type id="Support Request Module">
+  <item>Support Request</item>
+ </portal_type>
+</allowed_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
index e026e49f4d..a9a8712bbd 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
@@ -21,10 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -36,12 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Incoming Fax</string>
-                <string>Incoming Letter</string>
-                <string>Mail Message</string>
-                <string>Phone Call</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -65,181 +63,25 @@
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Event Module</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Event Module</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
             <value> <string></string> </value>
         </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print_pdf</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/EventModule_viewEventList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Fax.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Fax.xml
index 6f75932fb3..0eb2ff7eb5 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Fax.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Fax.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -99,340 +94,4 @@ an event.</string> </value>
       </dictionary>
     </pickle>
   </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Manage properties</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/MailMessage_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Letter.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Letter.xml
index 985883bf10..b5767f6296 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Letter.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Incoming%20Letter.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -37,7 +32,15 @@
         </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>content_icon</string> </key>
@@ -61,349 +64,25 @@ an event.</string> </value>
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Incoming Letter</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Incoming Letter</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>Manage properties</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
             <value> <string></string> </value>
         </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/MailMessage_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Mail%20Message.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Mail%20Message.xml
index aa2d122460..20348ad350 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Mail%20Message.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Mail%20Message.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -38,13 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Document</string>
-                <string>File</string>
-                <string>Image</string>
-                <string>Link</string>
-                <string>News Item</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -69,349 +64,25 @@ an event.</string> </value>
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Mail Message</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Mail Message</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>Manage properties</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
             <value> <string></string> </value>
         </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/MailMessage_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Phone%20Call.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Phone%20Call.xml
index dab3acb37e..5039c78e9b 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Phone%20Call.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Phone%20Call.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -98,340 +93,4 @@
       </dictionary>
     </pickle>
   </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Manage properties</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/MailMessage_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
index 9e451f9fb8..004ee68e00 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
@@ -21,10 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -36,9 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Sale Opportunity</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -62,181 +63,25 @@
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Sale Opportunity Module</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Sale Opportunity Module</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
             <value> <string></string> </value>
         </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/SaleOpportunityModule_viewSaleOpportunityList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity.xml
index 805c4bc7c0..ff8fddcb44 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -38,12 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Document</string>
-                <string>File</string>
-                <string>Image</string>
-                <string>Link</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -67,348 +63,24 @@
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Sale Opportunity</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Sale Opportunity</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Modify portal content</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Sale Opportunity</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/SaleOpportunity_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
+            <value> <string>Sale Opportunity</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
index f3f780d712..76bd140b57 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
@@ -21,10 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -36,9 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Support Request</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -62,180 +63,24 @@
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Support Request Module</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Support Request Module</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Support Request Module</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/SupportRequestModule_viewSupportRequestList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
+            <value> <string>Support Request Module</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request.xml
index af1dc6e32f..26ec9568ee 100755
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request.xml
@@ -21,12 +21,7 @@
         <item>
             <key> <string>_actions</string> </key>
             <value>
-              <tuple>
-                <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-                <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -38,14 +33,13 @@
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
-              <tuple>
-                <string>Document</string>
-                <string>File</string>
-                <string>Image</string>
-                <string>Link</string>
-                <string>Predicate Group</string>
-                <string>Value Predicate</string>
-              </tuple>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>base_category_list</string> </key>
+            <value>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -69,348 +63,24 @@
             <value> <int>1</int> </value>
         </item>
         <item>
-            <key> <string>id</string> </key>
-            <value> <string>Support Request</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Support Request</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>View</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>history</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>History</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Manage properties</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Metadata</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="5" aka="AAAAAAAAAAU=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.CMFCorePatch</string>
-          <string>PatchedActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
+            <key> <string>hidden_content_type_list</string> </key>
             <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_print</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>print</string> </value>
-        </item>
-        <item>
-            <key> <string>optional</string> </key>
-            <value> <int>0</int> </value>
+            <value> <string>Support Request</string> </value>
         </item>
         <item>
-            <key> <string>permissions</string> </key>
+            <key> <string>property_sheet_list</string> </key>
             <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <int>10</int> </value>
-        </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Print</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="6" aka="AAAAAAAAAAY=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/SupportRequest_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="7" aka="AAAAAAAAAAc=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewHistory</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="8" aka="AAAAAAAAAAg=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_viewMetadata</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="9" aka="AAAAAAAAAAk=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Base_printPdf</string> </value>
+            <value> <string>Support Request</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/EventModule_createEventFromMail.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/EventModule_createEventFromMail.xml
index 00bf2c69bf..9e39bce750 100755
--- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/EventModule_createEventFromMail.xml
+++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/EventModule_createEventFromMail.xml
@@ -179,77 +179,9 @@ return None\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAACMAAAA1AAAAQwAA
-AHONBgAAZAEAawAAbAEAfQIAAWQAAGsCAH0DAHQDAH0FAHnwBXQFAHQGAGQCAIMCAHQHAHQHAHwA
-AGQDAIMCAGQEAIMCAIMBAH0JAHQFAHQHAHwAAGQDAIMCAGQFAIMCAGQGAIMBAH0KAHQHAHwAAGQH
-AIMCAH0LAHQFAHwKAGQIAIMCAGQJAIMBAGQKAGoFAHAZAAF0BQB8CgBkCACDAgBkCwCDAQBkCgBq
-BQBvCgABZAwAfQwAbm8AAXQFAHwKAGQIAIMCAGQNAIMBAGQKAGoFAG8KAAFkDgB9DABuSQABdAUA
-fAoAZAgAgwIAZA8AgwEAZAoAagUAcBkAAXQFAHwKAGQIAIMCAGQQAIMBAGQKAGoFAG8KAAFkEQB9
-DABuBwABZBIAfQwAdAUAdAUAdA0AZBMAgwIAZBQAgwIAZBUAfAwAZBYAfAkAgwACfQUAdA4AdAUA
-fAMAZBcAgwIAdAUAdAcAfAAAZAMAgwIAZAUAgwIAZAYAgwEAgwEAgwEAfQoAdAUAfAUAZBgAgwIA
-ZBkAdAUAdAcAfAAAZAMAgwIAZA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2FwcGx5X3MGAAAAcmVzdWx0cwYAAABv
-YmplY3RzBgAAAHBhcmVudHMMAAAAb3JnYW5pc2F0aW9ucwcAAABoYXNhdHRyKAAAAAAoAAAAAHMP
-AAAAU2NyaXB0IChQeXRob24pcx8AAABFdmVudE1vZHVsZV9jcmVhdGVFdmVudEZyb21NYWlsAQAA
-AHOcAAAADQIJAgYCAwEnAR4BEgE1AQoBHAENATUBCgIGAh4BCQI2AhIBHgEeAR4BHgEbAQ8BDwEN
-AxkAEwEDAgYBOgEOAQ0CGAUeARUBBgEOATkBPAEdAg0BEwEJASEBDQAGARIBDwEZARIBEAEXAhoB
-HAEUAQkEEgEaARwBHwETAQkBIQENAAYBEgMoARMBHQIOAQoCAwEgARsBDgEKAggFKAEAAABzHwAA
-AEV2ZW50TW9kdWxlX2NyZWF0ZUV2ZW50RnJvbU1haWwoAQAAAHMfAAAARXZlbnRNb2R1bGVfY3Jl
-YXRlRXZlbnRGcm9tTWFpbCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVs
-ZT4BAAAAcwAAAAA=</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSaleOpportunity.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSaleOpportunity.xml
index 38faf7fda2..2338139bde 100755
--- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSaleOpportunity.xml
+++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSaleOpportunity.xml
@@ -92,24 +92,9 @@ current_object.setFollowUpValueList([new_object])\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAgAAAAIAAAAQwAA
-AHPNAAAAdA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AAAAAAhIBGwMeARgBBgEHAhIF
-DwESARMDKAEAAABzGwAAAEV2ZW50X2NyZWF0ZVNhbGVPcHBvcnR1bml0eSgBAAAAcxsAAABFdmVu
-dF9jcmVhdGVTYWxlT3Bwb3J0dW5pdHkoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAA
-ADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSupportRequest.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSupportRequest.xml
index 6c27cd489d..b44196c8c6 100755
--- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSupportRequest.xml
+++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createSupportRequest.xml
@@ -92,24 +92,9 @@ current_object.setFollowUpValueList([new_object])\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAgAAAAIAAAAQwAA
-AHPNAAAAdAAAdAEAZAEAgwIAgwAAfQIAdAAAdAAAdAEAZAIAgwIAgwAAZAMAgwIAfQMAdAQAdAAA
-fAMAZAQAgwIAgwAAgwEAfQUAdAAAdAAAdAEAZAUAgwIAZAYAgwIAZAcAZAgAZAkAfAMAZAoAfAUA
-gwADAXQGAHwDAHwFAIMCAH0HAHQAAHwHAGQLAIMCAGQMAHQAAHwCAGQNAIMCAIMAAGQOAHQAAHwC
-AGQPAIMCAIMAAIMAAgF0AAB8AgBkEACDAgB8BwBnAQCDAQABZAAAUygRAAAATnMJAAAAZ2V0T2Jq
-ZWN0cw8AAABnZXRQb3J0YWxPYmplY3RzFgAAAHN1cHBvcnRfcmVxdWVzdF9tb2R1bGVzDQAAAGdl
-bmVyYXRlTmV3SWRzDAAAAHBvcnRhbF90eXBlc3MQAAAAY29uc3RydWN0Q29udGVudHMJAAAAdHlw
-ZV9uYW1lcw8AAABTdXBwb3J0IFJlcXVlc3RzCQAAAGNvbnRhaW5lcnMCAAAAaWRzBAAAAGVkaXRz
-BQAAAHRpdGxlcwgAAABnZXRUaXRsZXMRAAAAY2xpZW50X3ZhbHVlX2xpc3RzEgAAAGdldFNvdXJj
-ZVZhbHVlTGlzdHMUAAAAc2V0Rm9sbG93VXBWYWx1ZUxpc3QoCAAAAHMJAAAAX2dldGF0dHJfcwcA
-AABjb250ZXh0cw4AAABjdXJyZW50X29iamVjdHMGAAAAbW9kdWxlcwMAAABzdHJzBgAAAG5ld19p
-ZHMJAAAAX2dldGl0ZW1fcwoAAABuZXdfb2JqZWN0KAgAAABzCQAAAF9nZXRhdHRyX3MHAAAAY29u
-dGV4dHMOAAAAY3VycmVudF9vYmplY3RzBgAAAG1vZHVsZXMDAAAAc3RycwYAAABuZXdfaWRzCQAA
-AF9nZXRpdGVtX3MKAAAAbmV3X29iamVjdCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMa
-AAAARXZlbnRfY3JlYXRlU3VwcG9ydFJlcXVlc3QBAAAAcxYAAAAAAhIBGwMeARgBBgEHAhIFDwES
-ARMDKAEAAABzGgAAAEV2ZW50X2NyZWF0ZVN1cHBvcnRSZXF1ZXN0KAEAAABzGgAAAEV2ZW50X2Ny
-ZWF0ZVN1cHBvcnRSZXF1ZXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9k
-dWxlPgEAAABzAAAAAA==</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/PersonModule_viewEmailReport.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/PersonModule_viewEmailReport.xml
index 133e7cf0bf..6fa2867d33 100755
--- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/PersonModule_viewEmailReport.xml
+++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/PersonModule_viewEmailReport.xml
@@ -80,27 +80,9 @@ return printed\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA4AAAARAAAAQwAA
-AHPnAAAAdAAAgwAAfQIAdAIAdAIAdAMAZAEAgwIAZAIAgwIAfAAAgwEAfQUAdAYAfAUAgwEAZAMA
-agIAby4AAXQHAGQEAIQAAHQCAHQCAHQDAGQBAIMCAGQFAIMCAHwAAIMBAIMCAH0FAG4BAAF0CAB0
-AgB0AwBkBgCDAgBkBwB8BQBkCABkCQCDAAKDAQB9CQB4TQB0CgB8CQCDAQBEXT8AfQsAdAIAfAsA
-ZAoAgwIAgwAAfQwAfAsAdA0AagkAbxoAAXwCAAR0AgB8DABkCwCDAgCDAAACSUpxmQABcZkAV3wC
-AIMAAFNkAABTKAwAAABOcxEAAABwb3J0YWxfc2VsZWN0aW9uc3MaAAAAZ2V0U2VsZWN0aW9uQ2hl
-Y2tlZFVpZHNGb3JpAAAAAGMBAAAAAgAAAAMAAABDAAAAcw0AAAB0AAB8AABkAQCDAgBTKAIAAABO
-cwMAAAB1aWQoAgAAAHMJAAAAX2dldGF0dHJfcwEAAAB4KAIAAABzAQAAAHhzCQAAAF9nZXRhdHRy
-XygAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMLAAAAPGxhbWJkYS40Nj4DAAAAcwAAAABz
-EAAAAGNhbGxTZWxlY3Rpb25Gb3JzDgAAAHBvcnRhbF9jYXRhbG9ncwoAAABwYXJlbnRfdWlkcwsA
-AABwb3J0YWxfdHlwZXMFAAAARW1haWxzCQAAAGdldE9iamVjdHMMAAAAZ2V0VXJsU3RyaW5nKA4A
-AABzBwAAAF9wcmludF9zBgAAAF9wcmludHMJAAAAX2dldGF0dHJfcwcAAABjb250ZXh0cw4AAABz
-ZWxlY3Rpb25fbmFtZXMEAAAAdWlkc3MDAAAAbGVucwMAAABtYXBzBAAAAGxpc3RzCwAAAG9iamVj
-dF9saXN0cwkAAABfZ2V0aXRlcl9zAQAAAG9zBwAAAG9fdmFsdWVzBAAAAE5vbmUoDgAAAHMOAAAA
-c2VsZWN0aW9uX25hbWVzBwAAAF9wcmludF9zBgAAAF9wcmludHMJAAAAX2dldGF0dHJfcwcAAABj
-b250ZXh0cwQAAAB1aWRzcwMAAABsZW5zAwAAAG1hcHMEAAAAbGlzdHMLAAAAb2JqZWN0X2xpc3Rz
-CQAAAF9nZXRpdGVyX3MBAAAAb3MHAAAAb192YWx1ZXMEAAAATm9uZSgAAAAAKAAAAABzDwAAAFNj
-cmlwdCAoUHl0aG9uKXMcAAAAUGVyc29uTW9kdWxlX3ZpZXdFbWFpbFJlcG9ydAEAAABzEgAAACcB
-EwEuASQBDQAGARIBDQEeAigBAAAAcxwAAABQZXJzb25Nb2R1bGVfdmlld0VtYWlsUmVwb3J0KAEA
-AABzHAAAAFBlcnNvbk1vZHVsZV92aWV3RW1haWxSZXBvcnQoAAAAACgAAAAAcw8AAABTY3JpcHQg
-KFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SaleOpportunity_view.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SaleOpportunity_view.xml
index 18685210b8..47680adad9 100755
--- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SaleOpportunity_view.xml
+++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/SaleOpportunity_view.xml
@@ -96,7 +96,7 @@
                         <string>my_title</string>
                         <string>my_target_price</string>
                         <string>my_price</string>
-                        <string>opportunity_state</string>
+                        <string>my_translated_opportunity_state_title</string>
                       </list>
                     </value>
                 </item>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSaleOpportunity.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSaleOpportunity.xml
index b0d4539f13..8df53e0845 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSaleOpportunity.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSaleOpportunity.xml
@@ -74,14 +74,9 @@ object.Event_createSaleOpportunity()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAMAAAAEAAAAQwAA
-AHMjAAAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAAWQAAFMoAwAAAE5zBgAAAG9iamVj
-dHMbAAAARXZlbnRfY3JlYXRlU2FsZU9wcG9ydHVuaXR5KAMAAABzCQAAAF9nZXRhdHRyX3MMAAAA
-c3RhdGVfY2hhbmdlcwYAAABvYmplY3QoAwAAAHMMAAAAc3RhdGVfY2hhbmdlcwkAAABfZ2V0YXR0
-cl9zBgAAAG9iamVjdCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMXAAAAY3JlYXRlX3Nh
-bGVfb3Bwb3J0dW5pdHkBAAAAcwQAAAAAAhIBKAEAAABzFwAAAGNyZWF0ZV9zYWxlX29wcG9ydHVu
-aXR5KAEAAABzFwAAAGNyZWF0ZV9zYWxlX29wcG9ydHVuaXR5KAAAAAAoAAAAAHMPAAAAU2NyaXB0
-IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSupportRequest.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSupportRequest.xml
index 5b39fe3096..061926bab3 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSupportRequest.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_createSupportRequest.xml
@@ -74,14 +74,9 @@ object.Event_createSupportRequest()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAMAAAAEAAAAQwAA
-AHMjAAAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAAWQAAFMoAwAAAE5zBgAAAG9iamVj
-dHMaAAAARXZlbnRfY3JlYXRlU3VwcG9ydFJlcXVlc3QoAwAAAHMJAAAAX2dldGF0dHJfcwwAAABz
-dGF0ZV9jaGFuZ2VzBgAAAG9iamVjdCgDAAAAcwwAAABzdGF0ZV9jaGFuZ2VzCQAAAF9nZXRhdHRy
-X3MGAAAAb2JqZWN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcxYAAABjcmVhdGVfc3Vw
-cG9ydF9yZXF1ZXN0AQAAAHMEAAAAAAISASgBAAAAcxYAAABjcmVhdGVfc3VwcG9ydF9yZXF1ZXN0
-KAEAAABzFgAAAGNyZWF0ZV9zdXBwb3J0X3JlcXVlc3QoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
-dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_replyMailMessage.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_replyMailMessage.xml
index 1bbdb11935..81f4f49c90 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_replyMailMessage.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/Event_replyMailMessage.xml
@@ -80,20 +80,9 @@ state_change.object.MailHost.send(message, mto=state_change.object.getSender(),
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAcAAAAOAAAAQwAA
-AHOhAAAAZAEAfQEAeDAAdAEAdAIAdAMAfAAAZAIAgwIAZAMAgwIAgwEARF0QAH0FAHwBAHwFADd9
-AQBxJQBXdAIAdAMAfAAAZAIAgwIAZAQAgwIAfQYAdAMAdAMAdAMAfAAAZAUAgwIAZAYAgwIAZAcA
-gwIAfAYAZAgAdAMAdAMAfAAAZAUAgwIAZAkAgwIAgwAAZAoAZAsAZAwAfAEAgwEDAWQAAFMoDQAA
-AE5zAAAAAHMGAAAAa3dhcmdzcw0AAAByZXBseV9zdWJqZWN0cwoAAAByZXBseV9ib2R5cwYAAABv
-YmplY3RzCAAAAE1haWxIb3N0cwQAAABzZW5kcwMAAABtdG9zCQAAAGdldFNlbmRlcnMFAAAAbWZy
-b21zDwAAAGluZm9AbmV4ZWRpLmNvbXMHAAAAc3ViamVjdCgHAAAAcw4AAABzdHJpbmdfc3ViamVj
-dHMJAAAAX2dldGl0ZXJfcwkAAABfZ2V0aXRlbV9zCQAAAF9nZXRhdHRyX3MMAAAAc3RhdGVfY2hh
-bmdlcwYAAABsZXR0ZXJzBwAAAG1lc3NhZ2UoBwAAAHMMAAAAc3RhdGVfY2hhbmdlcw4AAABzdHJp
-bmdfc3ViamVjdHMJAAAAX2dldGl0ZXJfcwkAAABfZ2V0aXRlbV9zCQAAAF9nZXRhdHRyX3MGAAAA
-bGV0dGVycwcAAABtZXNzYWdlKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcxIAAAByZXBs
-eV9tYWlsX21lc3NhZ2UBAAAAcwwAAAAGAR8ABgEOASECPAEoAQAAAHMSAAAAcmVwbHlfbWFpbF9t
-ZXNzYWdlKAEAAABzEgAAAHJlcGx5X21haWxfbWVzc2FnZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAo
-UHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/test_error_message.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/test_error_message.xml
index c66d7eeee0..f09a12c4cd 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/test_error_message.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/test_error_message.xml
@@ -88,27 +88,9 @@ else:\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAwAAAAJAAAAQwAA
-AHOYAAAAdAAAdAEAdAEAfAAAZAEAgwIAZAIAgwIAdAMAZAMAgwEAZAQAhQIAgwIAfQQAZAUAhAAA
-fQUAdAEAfAAAZAYAgwIAfQYAfAUAfAYAgwEAbxoAAXQHAHQIAHwEAIMCAH0JAHwJAIMAAAFuKQAB
-aAAABGQHAGQIAAM8fQoAdAsAdAEAfAAAZAkAgwIAfAYAfAoAjQIAAWQEAFMoCgAAAHMxAAAACiAg
-VGhpcyBpcyB0aGUgdGVzdCBmb3IgdGhpcyBwYXJ0aWN1bGFyIGFjdGlvbgogIHMKAAAAdHJhbnNp
-dGlvbnMCAAAAaWRz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3NhZ2UoAQAA
-AHMSAAAAdGVzdF9lcnJvcl9tZXNzYWdlKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgA
-AAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_action.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_action.xml
index 0f20613999..4fb7150946 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_action.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_action.xml
@@ -76,16 +76,9 @@ method()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAgAAAAGAAAAQwAA
-AHNHAAAAdAAAdAEAdAEAfAAAZAEAgwIAZAIAgwIAdAMAZAMAgwEAZAAAhQIAgwIAfQQAdAUAdAYA
-fAQAgwIAfQcAfAcAgwAAAWQAAFMoBAAAAE5zCgAAAHRyYW5zaXRpb25zAgAAAGlkcwUAAAB1c2Vy
-XygIAAAAcwkAAABfZ2V0aXRlbV9zCQAAAF9nZXRhdHRyX3MMAAAAc3RhdGVfY2hhbmdlcwMAAABs
-ZW5zCgAAAHRyYW5zaXRpb25zBwAAAGdldGF0dHJzBwAAAGNvbnRleHRzBgAAAG1ldGhvZCgIAAAA
-cwwAAABzdGF0ZV9jaGFuZ2VzCQAAAF9nZXRpdGVtX3MJAAAAX2dldGF0dHJfcwMAAABsZW5zCgAA
-AHRyYW5zaXRpb25zBwAAAGdldGF0dHJzBwAAAGNvbnRleHRzBgAAAG1ldGhvZCgAAAAAKAAAAABz
-DwAAAFNjcmlwdCAoUHl0aG9uKXMUAAAAdmFsaWRhdGVfdXNlcl9hY3Rpb24BAAAAcwYAAAAAAi0C
-DwEoAQAAAHMUAAAAdmFsaWRhdGVfdXNlcl9hY3Rpb24oAQAAAHMUAAAAdmFsaWRhdGVfdXNlcl9h
-Y3Rpb24oAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_assign.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_assign.xml
index f58ec46659..dd090f57aa 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_assign.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_workflow/scripts/validate_user_assign.xml
@@ -90,29 +90,9 @@ else:\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAwAAAAJAAAAQwAA
-AHOYAAAAdAAAdAEAdAEAfAAAZAEAgwIAZAIAgwIAdAMAZAMAgwEAZAQAhQIAgwIAfQQAZAUAhAAA
-fQUAdAEAfAAAZAYAgwIAfQYAfAUAfAYAgwEAbxoAAXQHAHQIAHwEAIMCAH0JAHwJAIMAAAFuKQAB
-aAAABGQHAGQIAAM8fQoAdAsAdAEAfAAAZAkAgwIAfAYAfAoAjQIAAWQEAFMoCgAAAHMxAAAACiAg
-VGhpcyBpcyB0aGUgdGVzdCBmb3IgdGhpcyBwYXJ0aWN1bGFyIGFjdGlvbgogIHMKAAAAdHJhbnNp
-dGlvbnMCAAAAaWRzBQAAAHVzZXJfTmMBAAAABQAAAAUAAABDAAAAc0YAAAB0AAB8AABkAQCDAgCD
-AAB9AgB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wdCAoUHl0aG9uKXMU
-AAAAdmFsaWRhdGVfdXNlcl9hc3NpZ24BAAAAcw4AAAAtAgkKDwINAQ8BCwIVASgBAAAAcxQAAAB2
-YWxpZGF0ZV91c2VyX2Fzc2lnbigBAAAAcxQAAAB2YWxpZGF0ZV91c2VyX2Fzc2lnbigAAAAAKAAA
-AABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_owner</string> </key>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/scripts/mail_message.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/scripts/mail_message.xml
index 50d59ff5bb..e83d00fd49 100755
--- a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/scripts/mail_message.xml
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/sale_opportunity_workflow/scripts/mail_message.xml
@@ -79,25 +79,9 @@ state_change.object.MailHost.send(message, mto=email_list, mfrom="info@nexedi.co
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAkAAAAJAAAAQwAA
-AHOcAAAAZAEAdAAAdAAAfAAAZAIAgwIAZAMAgwIAgwAAFn0CAHQDAHQAAHwAAGQEAIMCAGQFAIMC
-AH0EAHQAAHQFAGQGAIMCAGQHAGQIAIMAAX0GAHQHAGQJAIQAAHwGAIMCAH0IAHQAAHQAAHQAAHwA
-AGQCAIMCAGQKAIMCAGQLAIMCAHwEAGQMAHwIAGQNAGQOAGQPAHwCAIMBAwFkAABTKBAAAABOcwYA
-AABSZTogJXNzBgAAAG9iamVjdHMIAAAAZ2V0VGl0bGVzBgAAAGt3YXJnc3MHAAAAY29tbWVudHMS
-AAAAZ2V0Q2xpZW50VmFsdWVMaXN0cwsAAABwb3J0YWxfdHlwZXMGAAAAUGVyc29uYwEAAAACAAAA
-AwAAAEMAAABzEAAAAHQAAHwAAGQBAIMCAIMAAFMoAgAAAE5zEwAAAGdldERlZmF1bHRFbWFpbFRl
-eHQoAgAAAHMJAAAAX2dldGF0dHJfcwEAAAB4KAIAAABzAQAAAHhzCQAAAF9nZXRhdHRyXygAAAAA
-KAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMKAAAAPGxhbWJkYS4wPgUAAABzAAAAAHMIAAAATWFp
-bEhvc3RzBAAAAHNlbmRzAwAAAG10b3MFAAAAbWZyb21zDwAAAGluZm9AbmV4ZWRpLmNvbXMHAAAA
-c3ViamVjdCgJAAAAcwkAAABfZ2V0YXR0cl9zDAAAAHN0YXRlX2NoYW5nZXMOAAAAc3RyaW5nX3N1
-YmplY3RzCQAAAF9nZXRpdGVtX3MHAAAAbWVzc2FnZXMHAAAAY29udGV4dHMbAAAAUGVyc29uTW9k
-dWxlX3ZpZXdQZXJzb25MaXN0cwMAAABtYXBzCgAAAGVtYWlsX2xpc3QoCQAAAHMMAAAAc3RhdGVf
-Y2hhbmdlcwkAAABfZ2V0YXR0cl9zDgAAAHN0cmluZ19zdWJqZWN0cwkAAABfZ2V0aXRlbV9zBwAA
-AG1lc3NhZ2VzBwAAAGNvbnRleHRzGwAAAFBlcnNvbk1vZHVsZV92aWV3UGVyc29uTGlzdHMDAAAA
-bWFwcwoAAABlbWFpbF9saXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwwAAABtYWls
-X21lc3NhZ2UBAAAAcwoAAAAfARgCGAEbAycBKAEAAABzDAAAAG1haWxfbWVzc2FnZSgBAAAAcwwA
-AABtYWlsX21lc3NhZ2UoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+
-AQAAAHMAAAAA</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
diff --git a/bt5/erp5_crm/bt/copyright_list b/bt5/erp5_crm/bt/copyright_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/license b/bt5/erp5_crm/bt/license
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_action_path_list b/bt5/erp5_crm/bt/template_action_path_list
index e69de29bb2..5c8e6ad7e4 100755
--- a/bt5/erp5_crm/bt/template_action_path_list
+++ b/bt5/erp5_crm/bt/template_action_path_list
@@ -0,0 +1,30 @@
+Event Module | print_pdf
+Event Module | view
+Incoming Fax | history
+Incoming Fax | metadata
+Incoming Fax | print
+Incoming Fax | view
+Incoming Letter | history
+Incoming Letter | metadata
+Incoming Letter | print
+Incoming Letter | view
+Mail Message | history
+Mail Message | metadata
+Mail Message | print
+Mail Message | view
+Phone Call | history
+Phone Call | metadata
+Phone Call | print
+Phone Call | view
+Sale Opportunity Module | print
+Sale Opportunity Module | view
+Sale Opportunity | history
+Sale Opportunity | metadata
+Sale Opportunity | print
+Sale Opportunity | view
+Support Request Module | print
+Support Request Module | view
+Support Request | history
+Support Request | metadata
+Support Request | print
+Support Request | view
\ No newline at end of file
diff --git a/bt5/erp5_crm/bt/template_catalog_full_text_key_list b/bt5/erp5_crm/bt/template_catalog_full_text_key_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_catalog_keyword_key_list b/bt5/erp5_crm/bt/template_catalog_keyword_key_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_catalog_multivalue_key_list b/bt5/erp5_crm/bt/template_catalog_multivalue_key_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_catalog_request_key_list b/bt5/erp5_crm/bt/template_catalog_request_key_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_catalog_topic_key_list b/bt5/erp5_crm/bt/template_catalog_topic_key_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_constraint_id_list b/bt5/erp5_crm/bt/template_constraint_id_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_local_roles_list b/bt5/erp5_crm/bt/template_local_roles_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list
new file mode 100755
index 0000000000..8698390fef
--- /dev/null
+++ b/bt5/erp5_crm/bt/template_portal_type_allowed_content_type_list
@@ -0,0 +1,21 @@
+Event Module | Incoming Fax
+Event Module | Incoming Letter
+Event Module | Mail Message
+Event Module | Phone Call
+Mail Message | Document
+Mail Message | File
+Mail Message | Image
+Mail Message | Link
+Mail Message | News Item
+Sale Opportunity Module | Sale Opportunity
+Sale Opportunity | Document
+Sale Opportunity | File
+Sale Opportunity | Image
+Sale Opportunity | Link
+Support Request Module | Support Request
+Support Request | Document
+Support Request | File
+Support Request | Image
+Support Request | Link
+Support Request | Predicate Group
+Support Request | Value Predicate
\ No newline at end of file
diff --git a/bt5/erp5_crm/bt/template_portal_type_base_category_list b/bt5/erp5_crm/bt/template_portal_type_base_category_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_crm/bt/template_portal_type_hidden_content_type_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_portal_type_property_sheet_list b/bt5/erp5_crm/bt/template_portal_type_property_sheet_list
new file mode 100755
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_crm/bt/template_portal_type_roles_list b/bt5/erp5_crm/bt/template_portal_type_roles_list
new file mode 100755
index 0000000000..e69de29bb2
-- 
2.30.9