From 602abb58c49a0acec9e8c7e92af561168aad61fe Mon Sep 17 00:00:00 2001
From: Nicolas Wavrant <nicolas.wavrant@nexedi.com>
Date: Tue, 24 Oct 2017 11:45:57 +0200
Subject: [PATCH] Add the business_application base category on all modules for
 which it is missing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Modules should have the business_application base category set in order to classify them. Normally, the code helper set this category on module creation (https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.py#L15), but it is often forgotten to commit it (as it should be defined explicitely in template_portal_type_base_category_list's bt5 property.

This commit tries to fix it globally in all bt5s, using a script : https://lab.nexedi.com/snippets/259. I have tried to respect file modes, file encoding, alphabetical ordering, and "\No newline at end of file" issue in order to not generate useless diffs when other people will commit on these files later.

@jerome , @vpelletier , @kazuhiko , @seb : could you have a check to the file formats to tell me if anything is wrong ?


/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/465
---
 .../base_category_list.xml                    | 36 +++++++++
 .../template_portal_type_base_category_list   | 12 +++
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    | 78 +++++++++++++++++++
 .../template_portal_type_base_category_list   | 28 ++++++-
 .../base_category_list.xml                    | 27 +++++++
 .../template_portal_type_base_category_list   |  9 +++
 .../base_category_list.xml                    | 24 ++++++
 .../template_portal_type_base_category_list   |  8 ++
 .../base_category_list.xml                    |  6 ++
 .../template_portal_type_base_category_list   |  2 +
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    | 12 +++
 .../template_portal_type_base_category_list   |  4 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  6 ++
 .../template_portal_type_base_category_list   |  2 +
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  9 +++
 .../template_portal_type_base_category_list   |  3 +
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    | 11 +++
 .../template_portal_type_base_category_list   |  3 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  8 ++
 .../template_portal_type_base_category_list   |  2 +
 .../base_category_list.xml                    | 11 +++
 .../template_portal_type_base_category_list   |  3 +
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    | 24 ++++++
 .../template_portal_type_base_category_list   |  8 ++
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  3 +-
 .../base_category_list.xml                    |  6 ++
 .../template_portal_type_base_category_list   |  2 +
 .../base_category_list.xml                    |  5 ++
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  1 +
 .../base_category_list.xml                    |  6 ++
 .../template_portal_type_base_category_list   |  2 +
 .../base_category_list.xml                    |  3 +
 .../template_portal_type_base_category_list   |  3 +-
 60 files changed, 429 insertions(+), 3 deletions(-)
 create mode 100644 bt5/erp5_archive/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_archive/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_barcode/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_barcode/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_external_account/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_external_account/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_immobilisation/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_item/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_item/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_multimedia/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_multimedia/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_open_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_open_trade/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_publication/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_publication/bt/template_portal_type_base_category_list
 create mode 100644 bt5/erp5_tiosafe_virtuemart_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
 create mode 100644 bt5/erp5_tiosafe_virtuemart_test/bt/template_portal_type_base_category_list

diff --git a/bt5/erp5_apparel/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_apparel/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 0449a2551f..55ff25585e 100644
--- a/bt5/erp5_apparel/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_apparel/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,16 +1,34 @@
 <base_category_list>
+ <portal_type id="Apparel Assortment Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Apparel Bath Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Cloth">
   <item>measure</item>
  </portal_type>
+ <portal_type id="Apparel Cloth Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Colour Range">
   <item>fabric_brand</item>
  </portal_type>
+ <portal_type id="Apparel Colour Range Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Colour Range Variation Line">
   <item>specialise</item>
  </portal_type>
+ <portal_type id="Apparel Component Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Component Variation">
   <item>collection</item>
  </portal_type>
+ <portal_type id="Apparel Consumption Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Fabric">
   <item>cleaning_code</item>
   <item>fabric_brand</item>
@@ -19,9 +37,27 @@
   <item>collection</item>
   <item>colour</item>
  </portal_type>
+ <portal_type id="Apparel Fabric Item Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Apparel Fabric Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Measurement">
   <item>measure</item>
  </portal_type>
+ <portal_type id="Apparel Measurement Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Apparel Model Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Apparel Shape Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Apparel Size Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Apparel Technical Drawing">
   <item>image</item>
  </portal_type>
diff --git a/bt5/erp5_apparel/bt/template_portal_type_base_category_list b/bt5/erp5_apparel/bt/template_portal_type_base_category_list
index 93622796a0..797246e0a5 100644
--- a/bt5/erp5_apparel/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_apparel/bt/template_portal_type_base_category_list
@@ -1,10 +1,22 @@
+Apparel Assortment Module | business_application
+Apparel Bath Module | business_application
+Apparel Cloth Module | business_application
 Apparel Cloth | measure
+Apparel Colour Range Module | business_application
 Apparel Colour Range Variation Line | specialise
 Apparel Colour Range | fabric_brand
+Apparel Component Module | business_application
 Apparel Component Variation | collection
+Apparel Consumption Module | business_application
 Apparel Fabric Colour Variation | collection
 Apparel Fabric Colour Variation | colour
+Apparel Fabric Item Module | business_application
+Apparel Fabric Module | business_application
 Apparel Fabric | cleaning_code
 Apparel Fabric | fabric_brand
+Apparel Measurement Module | business_application
 Apparel Measurement | measure
+Apparel Model Module | business_application
+Apparel Shape Module | business_application
+Apparel Size Module | business_application
 Apparel Technical Drawing | image
\ No newline at end of file
diff --git a/bt5/erp5_archive/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_archive/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..3a5950a8e0
--- /dev/null
+++ b/bt5/erp5_archive/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="Archive Inventory Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_archive/bt/template_portal_type_base_category_list b/bt5/erp5_archive/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..b0303702a7
--- /dev/null
+++ b/bt5/erp5_archive/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+Archive Inventory Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_banking_cash/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_banking_cash/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index f439fec840..2e054ab35b 100644
--- a/bt5/erp5_banking_cash/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_banking_cash/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -2,19 +2,46 @@
  <portal_type id="Bank Account">
   <item>site</item>
  </portal_type>
+ <portal_type id="Cash Balance Regulation Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Cash Container Item">
   <item>aggregate</item>
  </portal_type>
+ <portal_type id="Cash Exchange Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Cash Movement Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Cash Movement New Not Emitted Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Cash Sorting Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Cash Sorting Statistic">
   <item>site</item>
   <item>statistic_type</item>
  </portal_type>
+ <portal_type id="Cash Sorting Statistic Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Cash To Currency Purchase">
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Cash To Currency Purchase Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Cash To Currency Sale">
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Cash To Currency Sale Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Classification Survey Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Container Cell">
   <item>cash_status</item>
   <item>emission_letter</item>
@@ -25,37 +52,88 @@
   <item>emission_letter</item>
   <item>variation</item>
  </portal_type>
+ <portal_type id="Counter Rendering Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Destruction Survey Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Foreign Cash Reception">
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Foreign Cash Reception Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Historical Operation">
   <item>historical_operation_type</item>
   <item>site</item>
  </portal_type>
+ <portal_type id="Historical Operation Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Internal Money Deposit Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Internal Money Payment">
   <item>payment_type</item>
  </portal_type>
+ <portal_type id="Internal Money Payment Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Monetary Destruction Cell">
   <item>variation</item>
  </portal_type>
+ <portal_type id="Monetary Destruction Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Monetary Issue Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Monetary Recall Cell">
   <item>variation</item>
  </portal_type>
+ <portal_type id="Monetary Recall Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Monetary Reception Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Monetary Survey Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Money Deposit">
   <item>source_trade</item>
  </portal_type>
+ <portal_type id="Money Deposit Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Money Deposit Rendering Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Mutilated Banknote">
   <item>causality</item>
   <item>source_decision</item>
   <item>source_trade</item>
  </portal_type>
+ <portal_type id="Mutilated Banknote Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Outgoing Cash Sorting Cell">
   <item>variation</item>
  </portal_type>
  <portal_type id="Outgoing Classification Survey Cell">
   <item>variation</item>
  </portal_type>
+ <portal_type id="Usual Cash Rendering Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Usual Cash Transfer Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Vault Transfer Cell">
   <item>variation</item>
  </portal_type>
+ <portal_type id="Vault Transfer Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_base_category_list b/bt5/erp5_banking_cash/bt/template_portal_type_base_category_list
index 86e977e693..4ff5a76750 100644
--- a/bt5/erp5_banking_cash/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_banking_cash/bt/template_portal_type_base_category_list
@@ -1,25 +1,51 @@
 Bank Account | site
+Cash Balance Regulation Module | business_application
 Cash Container Item | aggregate
+Cash Exchange Module | business_application
+Cash Movement Module | business_application
+Cash Movement New Not Emitted Module | business_application
+Cash Sorting Module | business_application
+Cash Sorting Statistic Module | business_application
 Cash Sorting Statistic | site
 Cash Sorting Statistic | statistic_type
+Cash To Currency Purchase Module | business_application
 Cash To Currency Purchase | currency_exchange_type
+Cash To Currency Sale Module | business_application
 Cash To Currency Sale | currency_exchange_type
+Classification Survey Module | business_application
 Container Cell | cash_status
 Container Cell | emission_letter
 Container Cell | variation
 Container Line | cash_status
 Container Line | emission_letter
 Container Line | variation
+Counter Rendering Module | business_application
+Destruction Survey Module | business_application
+Foreign Cash Reception Module | business_application
 Foreign Cash Reception | currency_exchange_type
+Historical Operation Module | business_application
 Historical Operation | historical_operation_type
 Historical Operation | site
+Internal Money Deposit Module | business_application
+Internal Money Payment Module | business_application
 Internal Money Payment | payment_type
 Monetary Destruction Cell | variation
+Monetary Destruction Module | business_application
+Monetary Issue Module | business_application
 Monetary Recall Cell | variation
+Monetary Recall Module | business_application
+Monetary Reception Module | business_application
+Monetary Survey Module | business_application
+Money Deposit Module | business_application
+Money Deposit Rendering Module | business_application
 Money Deposit | source_trade
+Mutilated Banknote Module | business_application
 Mutilated Banknote | causality
 Mutilated Banknote | source_decision
 Mutilated Banknote | source_trade
 Outgoing Cash Sorting Cell | variation
 Outgoing Classification Survey Cell | variation
-Vault Transfer Cell | variation
\ No newline at end of file
+Usual Cash Rendering Module | business_application
+Usual Cash Transfer Module | business_application
+Vault Transfer Cell | variation
+Vault Transfer Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_banking_check/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_banking_check/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 2b17a56575..b4c9cfa602 100644
--- a/bt5/erp5_banking_check/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_banking_check/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -2,9 +2,15 @@
  <portal_type id="Check Deposit">
   <item>site</item>
  </portal_type>
+ <portal_type id="Check Deposit Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Check Payment">
   <item>aggregate_resource</item>
  </portal_type>
+ <portal_type id="Check Payment Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Checkbook Delivery">
   <item>currency_exchange_type</item>
  </portal_type>
@@ -13,18 +19,39 @@
   <item>check_type</item>
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Checkbook Delivery Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Checkbook Reception Line">
   <item>check_amount</item>
   <item>check_type</item>
  </portal_type>
+ <portal_type id="Checkbook Reception Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Checkbook Usual Cash Transfer Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Checkbook Vault Transfer Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Stop Payment">
   <item>aggregate_resource</item>
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Stop Payment Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Traveler Check Purchase">
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Traveler Check Purchase Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Traveler Check Sale">
   <item>currency_exchange_type</item>
  </portal_type>
+ <portal_type id="Traveler Check Sale Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_banking_check/bt/template_portal_type_base_category_list b/bt5/erp5_banking_check/bt/template_portal_type_base_category_list
index ce656be7f7..2eec6699f5 100644
--- a/bt5/erp5_banking_check/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_banking_check/bt/template_portal_type_base_category_list
@@ -1,12 +1,21 @@
+Check Deposit Module | business_application
 Check Deposit | site
+Check Payment Module | business_application
 Check Payment | aggregate_resource
 Checkbook Delivery Line | check_amount
 Checkbook Delivery Line | check_type
 Checkbook Delivery Line | currency_exchange_type
+Checkbook Delivery Module | business_application
 Checkbook Delivery | currency_exchange_type
 Checkbook Reception Line | check_amount
 Checkbook Reception Line | check_type
+Checkbook Reception Module | business_application
+Checkbook Usual Cash Transfer Module | business_application
+Checkbook Vault Transfer Module | business_application
+Stop Payment Module | business_application
 Stop Payment | aggregate_resource
 Stop Payment | currency_exchange_type
+Traveler Check Purchase Module | business_application
 Traveler Check Purchase | currency_exchange_type
+Traveler Check Sale Module | business_application
 Traveler Check Sale | currency_exchange_type
\ No newline at end of file
diff --git a/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index a0aa15e38c..dc81ebc4da 100644
--- a/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_banking_core/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -2,9 +2,15 @@
  <portal_type id="Accounting Cancellation">
   <item>site</item>
  </portal_type>
+ <portal_type id="Accounting Cancellation Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Accounting Date">
   <item>site</item>
  </portal_type>
+ <portal_type id="Accounting Date Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Bank Account">
   <item>site</item>
  </portal_type>
@@ -21,6 +27,9 @@
  <portal_type id="Check Model Type Variation">
   <item>check_type</item>
  </portal_type>
+ <portal_type id="Check Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Check Operation Line">
   <item>aggregate_resource</item>
  </portal_type>
@@ -32,9 +41,24 @@
  <portal_type id="Checkbook Model">
   <item>composition</item>
  </portal_type>
+ <portal_type id="Checkbook Model Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Checkbook Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Counter Date">
   <item>site</item>
  </portal_type>
+ <portal_type id="Counter Date Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Counter Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Currency Cash Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Currency Exchange Cell">
   <item>currency_exchange_type</item>
   <item>price_currency</item>
diff --git a/bt5/erp5_banking_core/bt/template_portal_type_base_category_list b/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
index ab1b21937a..868a1b8953 100644
--- a/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_banking_core/bt/template_portal_type_base_category_list
@@ -1,17 +1,25 @@
+Accounting Cancellation Module | business_application
 Accounting Cancellation | site
+Accounting Date Module | business_application
 Accounting Date | site
 Bank Account | site
 Cash Delivery Cell | variation
 Category | vault_type
 Check Model Type Variation | check_type
+Check Module | business_application
 Check Operation Line | aggregate_resource
 Check | check_type
 Check | site
+Checkbook Model Module | business_application
 Checkbook Model | composition
+Checkbook Module | business_application
 Checkbook | check_amount
 Checkbook | resource
 Checkbook | site
+Counter Date Module | business_application
 Counter Date | site
+Counter Module | business_application
+Currency Cash Module | business_application
 Currency Exchange Cell | currency_exchange_type
 Currency Exchange Cell | price_currency
 Currency Exchange Line | price_currency
\ No newline at end of file
diff --git a/bt5/erp5_banking_inventory/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_banking_inventory/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 8e88ce46f7..2938f402a1 100644
--- a/bt5/erp5_banking_inventory/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_banking_inventory/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -9,9 +9,15 @@
   <item>destination</item>
   <item>price_currency</item>
  </portal_type>
+ <portal_type id="Bank Account Inventory Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Cash Inventory">
   <item>destination</item>
   <item>destination_section</item>
   <item>price_currency</item>
  </portal_type>
+ <portal_type id="Cash Inventory Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_banking_inventory/bt/template_portal_type_base_category_list b/bt5/erp5_banking_inventory/bt/template_portal_type_base_category_list
index 549a4019ed..7278269968 100644
--- a/bt5/erp5_banking_inventory/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_banking_inventory/bt/template_portal_type_base_category_list
@@ -1,7 +1,9 @@
 Bank Account Inventory Group | site
 Bank Account Inventory Line | destination
 Bank Account Inventory Line | price_currency
+Bank Account Inventory Module | business_application
 Bank Account Inventory | destination
+Cash Inventory Module | business_application
 Cash Inventory | destination
 Cash Inventory | destination_section
 Cash Inventory | price_currency
\ No newline at end of file
diff --git a/bt5/erp5_barcode/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_barcode/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..00984a4715
--- /dev/null
+++ b/bt5/erp5_barcode/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="Barcode Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_barcode/bt/template_portal_type_base_category_list b/bt5/erp5_barcode/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..2d51afec3d
--- /dev/null
+++ b/bt5/erp5_barcode/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+Barcode Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_calendar/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_calendar/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 23a3158f01..234c96a5c7 100644
--- a/bt5/erp5_calendar/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_calendar/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,4 +1,7 @@
 <base_category_list>
+ <portal_type id="Group Calendar Assignment Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Group Calendar Module">
   <item>business_application</item>
  </portal_type>
diff --git a/bt5/erp5_calendar/bt/template_portal_type_base_category_list b/bt5/erp5_calendar/bt/template_portal_type_base_category_list
index fa48eaadaf..07d88740f1 100644
--- a/bt5/erp5_calendar/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_calendar/bt/template_portal_type_base_category_list
@@ -1,3 +1,4 @@
+Group Calendar Assignment Module | business_application
 Group Calendar Module | business_application
 Leave Request Module | business_application
 Presence Request Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_computer_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_computer_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 118111e308..19559293d3 100644
--- a/bt5/erp5_computer_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_computer_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -6,6 +6,9 @@
  <portal_type id="Computer Model Module">
   <item>business_application</item>
  </portal_type>
+ <portal_type id="Computer Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Computer Network Module">
   <item>business_application</item>
  </portal_type>
diff --git a/bt5/erp5_computer_immobilisation/bt/template_portal_type_base_category_list b/bt5/erp5_computer_immobilisation/bt/template_portal_type_base_category_list
index f5a5640ce0..859561d829 100644
--- a/bt5/erp5_computer_immobilisation/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_computer_immobilisation/bt/template_portal_type_base_category_list
@@ -1,4 +1,5 @@
 Computer Model Module | business_application
+Computer Module | business_application
 Computer Network Module | business_application
 Computer Partition | subordination
 Computer | specialise
diff --git a/bt5/erp5_configurator/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_configurator/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 3ebb182967..87dbe70d1f 100644
--- a/bt5/erp5_configurator/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_configurator/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,4 +1,7 @@
 <base_category_list>
+ <portal_type id="Business Configuration Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Configuration Save">
   <item>causality</item>
   <item>current_state</item>
diff --git a/bt5/erp5_configurator/bt/template_portal_type_base_category_list b/bt5/erp5_configurator/bt/template_portal_type_base_category_list
index 67b8fce3e6..b2867198b9 100644
--- a/bt5/erp5_configurator/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_configurator/bt/template_portal_type_base_category_list
@@ -1,3 +1,4 @@
+Business Configuration Module | business_application
 Configuration Save | causality
 Configuration Save | current_state
 Rule Configurator Item | trade_phase
\ No newline at end of file
diff --git a/bt5/erp5_consulting/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_consulting/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 14af0c9911..eec55df475 100644
--- a/bt5/erp5_consulting/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_consulting/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -9,6 +9,9 @@
   <item>lexicon_item_type</item>
   <item>lexicon_item_ubm</item>
  </portal_type>
+ <portal_type id="Document Analysis Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Test Case">
   <item>requirement</item>
   <item>source</item>
@@ -19,6 +22,9 @@
   <item>site</item>
   <item>use_case_actor_role</item>
  </portal_type>
+ <portal_type id="Test Case Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Test Case Step">
   <item>requirement</item>
   <item>source_section</item>
@@ -34,6 +40,9 @@
   <item>source</item>
   <item>use_case_actor_role</item>
  </portal_type>
+ <portal_type id="Test Report Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Test Report Step">
   <item>requirement</item>
   <item>source_section</item>
@@ -46,6 +55,9 @@
   <item>site</item>
   <item>use_case_actor_role</item>
  </portal_type>
+ <portal_type id="Use Case Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Use Case Scenario">
   <item>requirement</item>
  </portal_type>
diff --git a/bt5/erp5_consulting/bt/template_portal_type_base_category_list b/bt5/erp5_consulting/bt/template_portal_type_base_category_list
index c3ad1a7569..25efda2837 100644
--- a/bt5/erp5_consulting/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_consulting/bt/template_portal_type_base_category_list
@@ -2,9 +2,11 @@ Document Analysis Document | document_analysis_document_type
 Document Analysis Lexicon Item | lexicon_item_type
 Document Analysis Lexicon Item | lexicon_item_ubm
 Document Analysis Lexicon | lexicon_source_type
+Document Analysis Module | business_application
 Test Case Actor | group
 Test Case Actor | site
 Test Case Actor | use_case_actor_role
+Test Case Module | business_application
 Test Case Step | requirement
 Test Case Step | source_section
 Test Case | requirement
@@ -14,6 +16,7 @@ Test Report Actor | group
 Test Report Actor | site
 Test Report Actor | source
 Test Report Actor | use_case_actor_role
+Test Report Module | business_application
 Test Report Step | requirement
 Test Report Step | source_section
 Test Report | requirement
@@ -22,6 +25,7 @@ Test Report | specialise
 Use Case Actor | group
 Use Case Actor | site
 Use Case Actor | use_case_actor_role
+Use Case Module | business_application
 Use Case Scenario Step | requirement
 Use Case Scenario Step | source_section
 Use Case Scenario | requirement
diff --git a/bt5/erp5_discussion/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_discussion/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 29cb41f710..1e148faed2 100644
--- a/bt5/erp5_discussion/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_discussion/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -6,4 +6,7 @@
   <item>contributor</item>
   <item>source</item>
  </portal_type>
+ <portal_type id="Discussion Thread Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_discussion/bt/template_portal_type_base_category_list b/bt5/erp5_discussion/bt/template_portal_type_base_category_list
index 1e88093694..89c9d28cba 100644
--- a/bt5/erp5_discussion/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_discussion/bt/template_portal_type_base_category_list
@@ -1,3 +1,4 @@
 Discussion Post | successor
+Discussion Thread Module | business_application
 Discussion Thread | contributor
 Discussion Thread | source
\ No newline at end of file
diff --git a/bt5/erp5_dms/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_dms/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index bdf9850d79..fde83d224d 100644
--- a/bt5/erp5_dms/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_dms/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,7 +1,13 @@
 <base_category_list>
+ <portal_type id="Document Ingestion Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Document Module">
   <item>business_application</item>
  </portal_type>
+ <portal_type id="External Source Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Image Module">
   <item>business_application</item>
  </portal_type>
diff --git a/bt5/erp5_dms/bt/template_portal_type_base_category_list b/bt5/erp5_dms/bt/template_portal_type_base_category_list
index a7d321bf13..5669ef83a3 100644
--- a/bt5/erp5_dms/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_dms/bt/template_portal_type_base_category_list
@@ -1,4 +1,6 @@
+Document Ingestion Module | business_application
 Document Module | business_application
+External Source Module | business_application
 Image Module | business_application
 Web Illustration | follow_up
 Web Illustration | function
diff --git a/bt5/erp5_external_account/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_external_account/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..14037cb0b7
--- /dev/null
+++ b/bt5/erp5_external_account/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="External Account Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_external_account/bt/template_portal_type_base_category_list b/bt5/erp5_external_account/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..f8cbaf5a0e
--- /dev/null
+++ b/bt5/erp5_external_account/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+External Account Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_free_subscription/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_free_subscription/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 01e04e29a6..3e383f014f 100644
--- a/bt5/erp5_free_subscription/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_free_subscription/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,4 +1,7 @@
 <base_category_list>
+ <portal_type id="Free Subscription Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Free Subscription Request">
   <item>causality</item>
   <item>follow_up</item>
diff --git a/bt5/erp5_free_subscription/bt/template_portal_type_base_category_list b/bt5/erp5_free_subscription/bt/template_portal_type_base_category_list
index 58b45cd518..2e476c3a55 100644
--- a/bt5/erp5_free_subscription/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_free_subscription/bt/template_portal_type_base_category_list
@@ -1,3 +1,4 @@
+Free Subscription Module | business_application
 Free Subscription Request Module | business_application
 Free Subscription Request | causality
 Free Subscription Request | follow_up
diff --git a/bt5/erp5_hr/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_hr/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 6036b43b51..ff95ef7444 100644
--- a/bt5/erp5_hr/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_hr/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -22,7 +22,16 @@
   <item>source_project</item>
   <item>successor</item>
  </portal_type>
+ <portal_type id="Position Announcement Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Position Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Position Opportunity">
   <item>referral</item>
  </portal_type>
+ <portal_type id="Position Opportunity Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_hr/bt/template_portal_type_base_category_list b/bt5/erp5_hr/bt/template_portal_type_base_category_list
index 080856eb24..968f3a1bd3 100644
--- a/bt5/erp5_hr/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_hr/bt/template_portal_type_base_category_list
@@ -1,5 +1,6 @@
 Assignment | agent
 Career | agent
+Position Announcement Module | business_application
 Position Announcement | aggregate
 Position Announcement | classification
 Position Announcement | destination
@@ -12,5 +13,7 @@ Position Announcement | site
 Position Announcement | source
 Position Announcement | source_project
 Position Announcement | successor
+Position Module | business_application
+Position Opportunity Module | business_application
 Position Opportunity | referral
 Position | agent
\ No newline at end of file
diff --git a/bt5/erp5_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..347770359b
--- /dev/null
+++ b/bt5/erp5_immobilisation/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="Immobilisation Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_immobilisation/bt/template_portal_type_base_category_list b/bt5/erp5_immobilisation/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..2d7b7124d7
--- /dev/null
+++ b/bt5/erp5_immobilisation/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+Immobilisation Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_item/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_item/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..91de49ca6c
--- /dev/null
+++ b/bt5/erp5_item/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,11 @@
+<base_category_list>
+ <portal_type id="Implicit Item Movement Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Item Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Service Report Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_item/bt/template_portal_type_base_category_list b/bt5/erp5_item/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..ecbe27ca70
--- /dev/null
+++ b/bt5/erp5_item/bt/template_portal_type_base_category_list
@@ -0,0 +1,3 @@
+Implicit Item Movement Module | business_application
+Item Module | business_application
+Service Report Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_knowledge_pad/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_knowledge_pad/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 4fb0da7f2a..00e00571be 100644
--- a/bt5/erp5_knowledge_pad/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_knowledge_pad/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -9,4 +9,7 @@
   <item>group</item>
   <item>publication_section</item>
  </portal_type>
+ <portal_type id="Knowledge Pad Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_knowledge_pad/bt/template_portal_type_base_category_list b/bt5/erp5_knowledge_pad/bt/template_portal_type_base_category_list
index 17adf9486f..057af20e7a 100644
--- a/bt5/erp5_knowledge_pad/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_knowledge_pad/bt/template_portal_type_base_category_list
@@ -1,4 +1,5 @@
 Gadget | gadget_type
 Knowledge Box | specialise
+Knowledge Pad Module | business_application
 Knowledge Pad | group
 Knowledge Pad | publication_section
\ No newline at end of file
diff --git a/bt5/erp5_multimedia/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_multimedia/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..7e33e3ac36
--- /dev/null
+++ b/bt5/erp5_multimedia/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,8 @@
+<base_category_list>
+ <portal_type id="Sound Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Video Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_multimedia/bt/template_portal_type_base_category_list b/bt5/erp5_multimedia/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..22ce59a7d7
--- /dev/null
+++ b/bt5/erp5_multimedia/bt/template_portal_type_base_category_list
@@ -0,0 +1,2 @@
+Sound Module | business_application
+Video Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_open_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..632b86ccd0
--- /dev/null
+++ b/bt5/erp5_open_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,11 @@
+<base_category_list>
+ <portal_type id="Open Internal Order Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Open Purchase Order Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Open Sale Order Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/template_portal_type_base_category_list b/bt5/erp5_open_trade/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..2483e3ef84
--- /dev/null
+++ b/bt5/erp5_open_trade/bt/template_portal_type_base_category_list
@@ -0,0 +1,3 @@
+Open Internal Order Module | business_application
+Open Purchase Order Module | business_application
+Open Sale Order Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_publication/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_publication/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..e62ec96ddc
--- /dev/null
+++ b/bt5/erp5_publication/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="Publication Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_publication/bt/template_portal_type_base_category_list b/bt5/erp5_publication/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..f92a70ebd1
--- /dev/null
+++ b/bt5/erp5_publication/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+Publication Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 0fe2d98bc3..72f78e3629 100644
--- a/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_registry_ohada/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -9,14 +9,23 @@
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="M0 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="M2">
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="M2 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="M4">
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="M4 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Mail Message">
   <item>follow_up</item>
  </portal_type>
@@ -30,14 +39,23 @@
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="P0 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="P2">
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="P2 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="P4">
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="P4 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="PDF">
   <item>aggregate</item>
  </portal_type>
@@ -51,8 +69,14 @@
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="S1 Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="S5">
   <item>destination_form</item>
   <item>follow_up</item>
  </portal_type>
+ <portal_type id="S5 Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list b/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
index 1d14646203..9ee89ad5a7 100644
--- a/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_registry_ohada/bt/template_portal_type_base_category_list
@@ -1,24 +1,32 @@
 Assignment | destination_form
 File | aggregate
+M0 Module | business_application
 M0 | destination_form
 M0 | follow_up
+M2 Module | business_application
 M2 | destination_form
 M2 | follow_up
+M4 Module | business_application
 M4 | destination_form
 M4 | follow_up
 Mail Message | follow_up
 Organisation Module | business_application
 Organisation | role
+P0 Module | business_application
 P0 | destination_form
 P0 | follow_up
+P2 Module | business_application
 P2 | destination_form
 P2 | follow_up
+P4 Module | business_application
 P4 | destination_form
 P4 | follow_up
 PDF | aggregate
 Person Module | business_application
 Person | destination_form
+S1 Module | business_application
 S1 | destination_form
 S1 | follow_up
+S5 Module | business_application
 S5 | destination_form
 S5 | follow_up
\ No newline at end of file
diff --git a/bt5/erp5_social_contracts/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_social_contracts/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 3660b9e14c..1e91710736 100644
--- a/bt5/erp5_social_contracts/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_social_contracts/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -9,4 +9,7 @@
   <item>social_contract_type</item>
   <item>source</item>
  </portal_type>
+ <portal_type id="Social Contract Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_social_contracts/bt/template_portal_type_base_category_list b/bt5/erp5_social_contracts/bt/template_portal_type_base_category_list
index fcf67a6270..b8f6afe59f 100644
--- a/bt5/erp5_social_contracts/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_social_contracts/bt/template_portal_type_base_category_list
@@ -1,6 +1,7 @@
 Person | insurance_coverage
 Person | legal_parent
 Person | natural_parent
+Social Contract Module | business_application
 Social Contract | destination
 Social Contract | social_contract_type
 Social Contract | source
\ No newline at end of file
diff --git a/bt5/erp5_system_event/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_system_event/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 0dba539212..c1774c6555 100644
--- a/bt5/erp5_system_event/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_system_event/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -7,4 +7,7 @@
   <item>destination</item>
   <item>source</item>
  </portal_type>
+ <portal_type id="System Event Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_system_event/bt/template_portal_type_base_category_list b/bt5/erp5_system_event/bt/template_portal_type_base_category_list
index e2d14032ef..37d88182c5 100644
--- a/bt5/erp5_system_event/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_system_event/bt/template_portal_type_base_category_list
@@ -1,4 +1,5 @@
 Authentication Event | destination
 Authentication Event | source
 Password Event | destination
-Password Event | source
\ No newline at end of file
+Password Event | source
+System Event Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_test_result/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_test_result/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index ac5e29ab9d..e1f71fab0f 100644
--- a/bt5/erp5_test_result/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_test_result/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -15,6 +15,9 @@
   <item>aggregate</item>
   <item>specialise</item>
  </portal_type>
+ <portal_type id="Test Node Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Test Result">
   <item>source_project</item>
  </portal_type>
@@ -27,6 +30,9 @@
  <portal_type id="Test Suite">
   <item>specialise</item>
  </portal_type>
+ <portal_type id="Test Suite Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Test Suite Repository">
   <item>aggregate</item>
  </portal_type>
diff --git a/bt5/erp5_test_result/bt/template_portal_type_base_category_list b/bt5/erp5_test_result/bt/template_portal_type_base_category_list
index 97ad5e53b8..d6439de985 100644
--- a/bt5/erp5_test_result/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_test_result/bt/template_portal_type_base_category_list
@@ -2,10 +2,12 @@ Benchmark Result | source_project
 Scalability Test Suite | specialise
 SlapOS Agent Test Suite | specialise
 SlapOS Software Release Unit Test | specialise
+Test Node Module | business_application
 Test Node | aggregate
 Test Node | specialise
 Test Result Module | business_application
 Test Result Node | specialise
 Test Result | source_project
+Test Suite Module | business_application
 Test Suite Repository | aggregate
 Test Suite | specialise
\ No newline at end of file
diff --git a/bt5/erp5_tiosafe_virtuemart_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_tiosafe_virtuemart_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..eb8ae91e78
--- /dev/null
+++ b/bt5/erp5_tiosafe_virtuemart_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,5 @@
+<base_category_list>
+ <portal_type id="Virtuemart Test Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_tiosafe_virtuemart_test/bt/template_portal_type_base_category_list b/bt5/erp5_tiosafe_virtuemart_test/bt/template_portal_type_base_category_list
new file mode 100644
index 0000000000..4228533df1
--- /dev/null
+++ b/bt5/erp5_tiosafe_virtuemart_test/bt/template_portal_type_base_category_list
@@ -0,0 +1 @@
+Virtuemart Test Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index ac4c42c036..d90ff5c906 100644
--- a/bt5/erp5_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_trade/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -2,6 +2,9 @@
  <portal_type id="Business Process Module">
   <item>business_application</item>
  </portal_type>
+ <portal_type id="Delivery Node Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Internal Order Module">
   <item>business_application</item>
  </portal_type>
diff --git a/bt5/erp5_trade/bt/template_portal_type_base_category_list b/bt5/erp5_trade/bt/template_portal_type_base_category_list
index dc1474c785..779211f0fd 100644
--- a/bt5/erp5_trade/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_trade/bt/template_portal_type_base_category_list
@@ -1,4 +1,5 @@
 Business Process Module | business_application
+Delivery Node Module | business_application
 Internal Order Module | business_application
 Internal Packing List Module | business_application
 Internal Trade Condition Module | business_application
diff --git a/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 71a70b4878..f7751e826f 100644
--- a/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,4 +1,7 @@
 <base_category_list>
+ <portal_type id="Bar Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Foo">
   <item>bar_category</item>
   <item>foo_big_category</item>
@@ -11,4 +14,7 @@
  <portal_type id="Foo Line">
   <item>foo_category</item>
  </portal_type>
+ <portal_type id="Foo Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_ui_test/bt/template_portal_type_base_category_list b/bt5/erp5_ui_test/bt/template_portal_type_base_category_list
index 72417ae9f2..4ec938cbb6 100644
--- a/bt5/erp5_ui_test/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_ui_test/bt/template_portal_type_base_category_list
@@ -1,5 +1,7 @@
+Bar Module | business_application
 Foo Bar Module | business_application
 Foo Line | foo_category
+Foo Module | business_application
 Foo | bar_category
 Foo | foo_big_category
 Foo | foo_category
diff --git a/bt5/erp5_workflow/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_workflow/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 1720f54e4e..fc75b650f6 100644
--- a/bt5/erp5_workflow/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_workflow/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -2,4 +2,7 @@
  <portal_type id="Transition Variable">
   <item>causality</item>
  </portal_type>
+ <portal_type id="Workflow Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_workflow/bt/template_portal_type_base_category_list b/bt5/erp5_workflow/bt/template_portal_type_base_category_list
index 442fd83e95..1733f7948a 100644
--- a/bt5/erp5_workflow/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_workflow/bt/template_portal_type_base_category_list
@@ -1 +1,2 @@
-Transition Variable | causality
\ No newline at end of file
+Transition Variable | causality
+Workflow Module | business_application
\ No newline at end of file
-- 
2.30.9