From e6af0e44716f50cbcc7eca85e61c3be5301a1bd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Wed, 6 Sep 2006 12:07:32 +0000
Subject: [PATCH] 2006-09-06 aurel * reference currency id is now defined as a
 property and remove all stufff related to Foreign Check

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9694 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Foreign%20Check/metadata.xml |  89 ---------------
 .../portal_types/Foreign%20Check/print.xml    |  89 ---------------
 .../Foreign%20Check/translate.xml             |  89 ---------------
 .../portal_types/Foreign%20Check/view.xml     |  89 ---------------
 .../allowed_content_types.xml                 |   3 -
 .../property_sheet_list.xml                   |   4 -
 .../portal_types/Foreign%20Check%20Module.xml | 105 ------------------
 .../portal_types/Foreign%20Check.xml          | 104 -----------------
 .../Baobab_getPortalReferenceCurrencyID.xml   |   7 +-
 bt5/erp5_banking_core/bt/change_log           |   3 +
 .../bt/template_action_path_list              |  11 +-
 ...late_portal_type_allowed_content_type_list |   3 +-
 .../bt/template_portal_type_id_list           |   4 +-
 .../template_portal_type_property_sheet_list  |   4 +-
 14 files changed, 12 insertions(+), 592 deletions(-)
 delete mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/metadata.xml
 delete mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/print.xml
 delete mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/translate.xml
 delete mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/view.xml
 delete mode 100644 bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check%20Module.xml
 delete mode 100644 bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check.xml

diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/metadata.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/metadata.xml
deleted file mode 100644
index d0fa5c6b30..0000000000
--- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/metadata.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.ActionInformation</string>
-          <string>ActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_edit</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>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>3.0</float> </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="2" aka="AAAAAAAAAAI=">
-    <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>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/print.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/print.xml
deleted file mode 100644
index c246fc6be9..0000000000
--- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/print.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.ActionInformation</string>
-          <string>ActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</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>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>2.0</float> </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="2" aka="AAAAAAAAAAI=">
-    <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}/item_print</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/translate.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/translate.xml
deleted file mode 100644
index 462c6ac8fe..0000000000
--- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/translate.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.ActionInformation</string>
-          <string>ActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_action</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>translate</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>Translate Content</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>4.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Translate</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <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}/translation_template_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/view.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/view.xml
deleted file mode 100644
index 489d3773b7..0000000000
--- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Foreign%20Check/view.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.CMFCore.ActionInformation</string>
-          <string>ActionInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</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>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>1.0</float> </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="2" aka="AAAAAAAAAAI=">
-    <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}/ForeignCheck_view</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_banking_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index f42d1628b4..91ca45cc0c 100644
--- a/bt5/erp5_banking_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_banking_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -28,7 +28,4 @@
   <item>Banknote</item>
   <item>Coin</item>
  </portal_type>
- <portal_type id="Foreign Check Module">
-  <item>Foreign Check</item>
- </portal_type>
 </allowed_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
index 17dff8f66d..b5250160c6 100644
--- a/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
+++ b/bt5/erp5_banking_core/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
@@ -36,8 +36,4 @@
  <portal_type id="Counter Date">
   <item>Task</item>
  </portal_type>
- <portal_type id="Foreign Check">
-  <item>Arrow</item>
-  <item>Task</item>
- </portal_type>
 </property_sheet_list>
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check%20Module.xml b/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check%20Module.xml
deleted file mode 100644
index ec727a10fb..0000000000
--- a/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check%20Module.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_actions</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_aliases</string> </key>
-            <value>
-              <dictionary/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_owner</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_roles</string> </key>
-            <value>
-              <list/>
-            </value>
-        </item>
-        <item>
-            <key> <string>allowed_content_types</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>base_category_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>content_icon</string> </key>
-            <value> <string>folder_icon.gif</string> </value>
-        </item>
-        <item>
-            <key> <string>content_meta_type</string> </key>
-            <value> <string>ERP5 Folder</string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string>Folders allow to store a large number of documents (1,000,000 should not\n
-be a problem).</string> </value>
-        </item>
-        <item>
-            <key> <string>factory</string> </key>
-            <value> <string>addFolder</string> </value>
-        </item>
-        <item>
-            <key> <string>filter_content_types</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-        <item>
-            <key> <string>hidden_content_type_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Foreign Check Module</string> </value>
-        </item>
-        <item>
-            <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>property_sheet_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check.xml b/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check.xml
deleted file mode 100644
index 024eca9695..0000000000
--- a/bt5/erp5_banking_core/PortalTypeTemplateItem/portal_types/Foreign%20Check.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_actions</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_aliases</string> </key>
-            <value>
-              <dictionary/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_owner</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_roles</string> </key>
-            <value>
-              <list/>
-            </value>
-        </item>
-        <item>
-            <key> <string>allowed_content_types</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>base_category_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>content_icon</string> </key>
-            <value> <string>item_icon.gif</string> </value>
-        </item>
-        <item>
-            <key> <string>content_meta_type</string> </key>
-            <value> <string>ERP5 Item</string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string>Items in ERP5 are intended to provide a way to track objects.</string> </value>
-        </item>
-        <item>
-            <key> <string>factory</string> </key>
-            <value> <string>addItem</string> </value>
-        </item>
-        <item>
-            <key> <string>filter_content_types</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-        <item>
-            <key> <string>hidden_content_type_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Foreign Check</string> </value>
-        </item>
-        <item>
-            <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>property_sheet_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml
index 540166aa71..365bab40be 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml
@@ -70,7 +70,7 @@
             <key> <string>_body</string> </key>
             <value> <string># in this script you must return the default value of the currency for the site\n
 # this must correspond to the id of the currency in the currency_module\n
-return \'EUR\'\n
+return context.getPortalObject().getProperty(\'reference_currency_id\')\n
 </string> </value>
         </item>
         <item>
@@ -116,7 +116,10 @@ return \'EUR\'\n
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
-                          <tuple/>
+                          <tuple>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                          </tuple>
                         </value>
                     </item>
                   </dictionary>
diff --git a/bt5/erp5_banking_core/bt/change_log b/bt5/erp5_banking_core/bt/change_log
index 8aeb298232..bcca2846c0 100644
--- a/bt5/erp5_banking_core/bt/change_log
+++ b/bt5/erp5_banking_core/bt/change_log
@@ -1,3 +1,6 @@
+2006-09-06 aurel
+* reference currency id is now defined as a property
+
 2006-08-11 aurel
 * improve view for counter module inventory report
 
diff --git a/bt5/erp5_banking_core/bt/template_action_path_list b/bt5/erp5_banking_core/bt/template_action_path_list
index e01ccac3bd..a72951e366 100644
--- a/bt5/erp5_banking_core/bt/template_action_path_list
+++ b/bt5/erp5_banking_core/bt/template_action_path_list
@@ -62,13 +62,4 @@ Counter | view
 Currency Cash Module | list
 Currency Cash Module | list_sort_on
 Currency Cash Module | list_ui
-Currency Cash Module | view
-Foreign Check Module | list
-Foreign Check Module | localroles
-Foreign Check Module | metadata
-Foreign Check Module | syndication
-Foreign Check Module | view
-Foreign Check | metadata
-Foreign Check | print
-Foreign Check | translate
-Foreign Check | view
\ No newline at end of file
+Currency Cash Module | view
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_banking_core/bt/template_portal_type_allowed_content_type_list
index 49965e1c6f..bd0a188ab6 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_allowed_content_type_list
@@ -8,5 +8,4 @@ Counter Date Module | Counter Date
 Counter Module | Counter
 Counter | Telephone
 Currency Cash Module | Banknote
-Currency Cash Module | Coin
-Foreign Check Module | Foreign Check
\ No newline at end of file
+Currency Cash Module | Coin
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_id_list b/bt5/erp5_banking_core/bt/template_portal_type_id_list
index b3fb062240..34e6a7de9c 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_id_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_id_list
@@ -16,6 +16,4 @@ Counter
 Counter Date
 Counter Date Module
 Counter Module
-Currency Cash Module
-Foreign Check
-Foreign Check Module
\ No newline at end of file
+Currency Cash Module
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
index 43e9217b55..ced4ae22e6 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_property_sheet_list
@@ -14,6 +14,4 @@ Checkbook | Arrow
 Checkbook | Checkbook
 Checkbook | Task
 Checkbook | VariationRange
-Counter Date | Task
-Foreign Check | Arrow
-Foreign Check | Task
\ No newline at end of file
+Counter Date | Task
\ No newline at end of file
-- 
2.30.9