diff --git a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index b14ae37abd11b478cc84e5095686f3ffc2a5a257..0c804dd03d2bef379e9c1d12782bb719ee526bd3 100644
--- a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -46,6 +46,12 @@
   <item>Trade Condition</item>
   <item>Invoice Line</item>
  </portal_type>
+ <portal_type id="Rule Tool">
+  <item>Invoice Rule</item>
+  <item>Invoice Transaction Rule</item>
+  <item>Invoicing Rule</item>
+  <item>Payment Rule</item>
+ </portal_type>
  <portal_type id="Sale Invoice Transaction">
   <item>Sale Invoice Transaction Line</item>
   <item>Trade Condition</item>
diff --git a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9531da693e14b21f402e64184d297e3bfb82d9ad
--- /dev/null
+++ b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Payment%20Rule.xml
@@ -0,0 +1,98 @@
+<?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>_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>document.gif</string> </value>
+        </item>
+        <item>
+            <key> <string>content_meta_type</string> </key>
+            <value> <string>ERP5 Payment Rule</string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string>      Payment Rule generates payment simulation movement from invoice transaction simulation movements.</string> </value>
+        </item>
+        <item>
+            <key> <string>factory</string> </key>
+            <value> <string>addPaymentRule</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>Payment Rule</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_accounting/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
index 3c262ab97bbab7025736e8792c815a574c5ae6d5..a02d12123964cfab09eaca22a8b8e8e3882f63d6 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list
@@ -21,6 +21,10 @@ Preference | Sale Invoice Transaction
 Purchase Invoice Transaction | Invoice Line
 Purchase Invoice Transaction | Purchase Invoice Transaction Line
 Purchase Invoice Transaction | Trade Condition
+Rule Tool | Invoice Rule
+Rule Tool | Invoice Transaction Rule
+Rule Tool | Invoicing Rule
+Rule Tool | Payment Rule
 Sale Invoice Transaction | Invoice Line
 Sale Invoice Transaction | Sale Invoice Transaction Line
 Sale Invoice Transaction | Trade Condition
\ No newline at end of file
diff --git a/bt5/erp5_accounting/bt/template_portal_type_id_list b/bt5/erp5_accounting/bt/template_portal_type_id_list
index 734db093c29885d55e8721ff479c82a2f8a631c1..f8a49eefe09a9a3cb6e0f20a7c1ce2d8831cc7ce 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_id_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_id_list
@@ -13,6 +13,7 @@ Invoice Line
 Invoice Rule
 Invoice Transaction Rule
 Invoicing Rule
+Payment Rule
 Payment Transaction
 Purchase Invoice Transaction
 Purchase Invoice Transaction Line
diff --git a/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index fe8c04f5e95305b5a963ae7d071bbd4089246239..5b28d187748cbaeda792d6b201c3bf0d060c0766 100644
--- a/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -71,6 +71,10 @@
  <portal_type id="Returned Sale Packing List Module">
   <item>Returned Sale Packing List</item>
  </portal_type>
+ <portal_type id="Rule Tool">
+  <item>Order Rule</item>
+  <item>Delivery Rule</item>
+ </portal_type>
  <portal_type id="Sale Order">
   <item>Sale Order Line</item>
   <item>Discount</item>
diff --git a/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
index a116f2de932baf05fffbee6bd940c56c3abaca2a..ce7ea4487e10a125cbcdc81e506b6b60178e408a 100644
--- a/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_trade/bt/template_portal_type_allowed_content_type_list
@@ -26,6 +26,8 @@ Returned Sale Packing List Line | Returned Sale Packing List Cell
 Returned Sale Packing List Module | Returned Sale Packing List
 Returned Sale Packing List | Container
 Returned Sale Packing List | Returned Sale Packing List Line
+Rule Tool | Delivery Rule
+Rule Tool | Order Rule
 Sale Order Line | Delivery Cell
 Sale Order Module | Sale Order
 Sale Order | Discount
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
index fa5c83bc4e13fd7273e94ea949dc3c5a302cfa86..77f5f7307b00db0b2ccbd0f0eeb93f6afc1668ad 100644
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Rule%20Tool.xml
@@ -36,6 +36,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -54,20 +58,25 @@
         </item>
         <item>
             <key> <string>content_meta_type</string> </key>
-            <value> <string>ERP5 Folder</string> </value>
+            <value> <string>ERP5 Rule Tool</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>
+            <value> <string>The RulesTool implements portal objects transformation policies.</string> </value>
         </item>
         <item>
             <key> <string>factory</string> </key>
-            <value> <string>addFolder</string> </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>filter_content_types</string> </key>
-            <value> <int>0</int> </value>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>