From 1a69070aa080b1fcab17caaaf0d86458ebe78a84 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 1 Feb 2010 10:29:12 +0000
Subject: [PATCH] add default business process configurations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32120 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_default_business_process.xml         | 141 ++++++++++++++++++
 .../erp5_default_business_process/account.xml | 136 +++++++++++++++++
 .../accounted.xml                             |  37 +++++
 .../erp5_default_business_process/deliver.xml | 139 +++++++++++++++++
 .../delivered.xml                             |  37 +++++
 .../erp5_default_business_process/invoice.xml | 135 +++++++++++++++++
 .../invoiced.xml                              |  37 +++++
 .../erp5_default_business_process/ordered.xml |  37 +++++
 .../erp5_default_business_process/paid.xml    |  37 +++++
 .../erp5_default_business_process/pay.xml     | 116 ++++++++++++++
 .../portal_categories/trade_phase/default.xml |  67 +++++++++
 .../trade_phase/default/accounting.xml        |  27 ++++
 .../trade_phase/default/delivery.xml          |  27 ++++
 .../trade_phase/default/discount.xml          |  27 ++++
 .../trade_phase/default/invoicing.xml         |  27 ++++
 .../trade_phase/default/payment.xml           |  27 ++++
 .../trade_phase/default/tax.xml               |  27 ++++
 .../portal_rules/new_delivery_rule.xml        |   8 +
 .../portal_rules/new_invoice_rule.xml         |   8 +
 .../new_invoice_transaction_rule.xml          |   8 +
 .../portal_rules/new_invoicing_rule.xml       |   8 +
 .../portal_rules/new_order_rule.xml           |   8 +
 .../portal_rules/new_payment_rule.xml         |   8 +
 .../portal_rules/new_simple_order_rule.xml    |   8 +
 bt5/erp5_simulation/bt/template_path_list     |   4 +
 25 files changed, 1141 insertions(+)
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/account.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/accounted.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/deliver.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/delivered.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoice.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoiced.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/ordered.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/paid.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/pay.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/accounting.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/delivery.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/discount.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/invoicing.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/payment.xml
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/tax.xml

diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process.xml
new file mode 100644
index 0000000000..1496824f2c
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process.xml
@@ -0,0 +1,141 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessProcess" module="Products.ERP5Type.Document.BusinessProcess"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_count</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mt_index</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_tree</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>erp5_default_business_process</string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string>Default process previously defined implicitly in core ERP5 business templates.</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>erp5_default_business_process</string> </value>
+        </item>
+        <item>
+            <key> <string>last_id</string> </key>
+            <value> <string>11</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business Process</string> </value>
+        </item>
+        <item>
+            <key> <string>referential_date</string> </key>
+            <value> <string>start_date</string> </value>
+        </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>1</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Length" module="BTrees.Length"/>
+    </pickle>
+    <pickle> <int>0</int> </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <none/>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <none/>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/account.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/account.xml
new file mode 100644
index 0000000000..6c53b7bd79
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/account.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>source_stage/business_process_module/erp5_default_business_process/3</string>
+                <string>destination_stage/business_process_module/erp5_default_business_process/4</string>
+                <string>delivery_builder/portal_deliveries/purchase_invoice_transaction_builder</string>
+                <string>delivery_builder/portal_deliveries/sale_invoice_transaction_builder</string>
+                <string>predecessor/business_process_module/erp5_default_business_process/10</string>
+                <string>successor/business_process_module/erp5_default_business_process/4</string>
+                <string>trade_phase/default/accounting</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>completed_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>started</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>deliverable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>destination_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultDestinationList</string> </value>
+        </item>
+        <item>
+            <key> <string>frozen_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>account</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business Path</string> </value>
+        </item>
+        <item>
+            <key> <string>source_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultSourceList</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>account</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/accounted.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/accounted.xml
new file mode 100644
index 0000000000..904bad7cee
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/accounted.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessState" module="Products.ERP5Type.Document.BusinessState"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>accounted</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>4</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business State</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>accounted</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/deliver.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/deliver.xml
new file mode 100644
index 0000000000..6e4a597dbc
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/deliver.xml
@@ -0,0 +1,139 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>source_stage/business_process_module/erp5_default_business_process/1</string>
+                <string>destination_stage/business_process_module/erp5_default_business_process/2</string>
+                <string>predecessor/business_process_module/erp5_default_business_process/1</string>
+                <string>successor/business_process_module/erp5_default_business_process/2</string>
+                <string>delivery_builder/portal_deliveries/bpm_sale_packing_list_builder</string>
+                <string>trade_phase/default/delivery</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>completed_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>started</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>deliverable</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>destination_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultDestinationList</string> </value>
+        </item>
+        <item>
+            <key> <string>frozen_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>deliver</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>lead_time</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business Path</string> </value>
+        </item>
+        <item>
+            <key> <string>source_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultSourceList</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>deliver</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/delivered.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/delivered.xml
new file mode 100644
index 0000000000..9617efc4e0
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/delivered.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessState" module="Products.ERP5Type.Document.BusinessState"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>delivered</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>2</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business State</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>delivered</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoice.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoice.xml
new file mode 100644
index 0000000000..8a3fff5426
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoice.xml
@@ -0,0 +1,135 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>source_stage/business_process_module/erp5_default_business_process/2</string>
+                <string>destination_stage/business_process_module/erp5_default_business_process/3</string>
+                <string>predecessor/business_process_module/erp5_default_business_process/2</string>
+                <string>successor/business_process_module/erp5_default_business_process/10</string>
+                <string>delivery_builder/portal_deliveries/bpm_sale_invoice_builder</string>
+                <string>trade_phase/default/invoicing</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>completed_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>started</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>deliverable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>destination_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultDestinationList</string> </value>
+        </item>
+        <item>
+            <key> <string>frozen_state</string> </key>
+            <value>
+              <tuple>
+                <string>delivered</string>
+                <string>stopped</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>invoice</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>2</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business Path</string> </value>
+        </item>
+        <item>
+            <key> <string>source_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultSourceList</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>invoice</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoiced.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoiced.xml
new file mode 100644
index 0000000000..9801a592ea
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/invoiced.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessState" module="Products.ERP5Type.Document.BusinessState"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>invoiced</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business State</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>invoiced</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/ordered.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/ordered.xml
new file mode 100644
index 0000000000..cf2df7c480
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/ordered.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessState" module="Products.ERP5Type.Document.BusinessState"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>ordered</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business State</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>ordered</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/paid.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/paid.xml
new file mode 100644
index 0000000000..0bed286584
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/paid.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessState" module="Products.ERP5Type.Document.BusinessState"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>paid</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>5</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business State</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>paid</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/pay.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/pay.xml
new file mode 100644
index 0000000000..c2ec34f4fb
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/pay.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Access_contents_information_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Add_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_Modify_portal_content_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>_View_Permission</string> </key>
+            <value>
+              <tuple>
+                <string>Assignee</string>
+                <string>Assignor</string>
+                <string>Associate</string>
+                <string>Auditor</string>
+                <string>Author</string>
+                <string>Manager</string>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>delivery_builder/portal_deliveries/payment_transaction_builder</string>
+                <string>trade_phase/default/payment</string>
+                <string>source_stage/business_process_module/erp5_default_business_process/4</string>
+                <string>destination_stage/business_process_module/erp5_default_business_process/5</string>
+                <string>predecessor/business_process_module/erp5_default_business_process/4</string>
+                <string>successor/business_process_module/erp5_default_business_process/11</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>deliverable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>destination_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultDestinationList</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>pay</string> </value>
+        </item>
+        <item>
+            <key> <string>int_index</string> </key>
+            <value> <int>4</int> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Business Path</string> </value>
+        </item>
+        <item>
+            <key> <string>source_method_id</string> </key>
+            <value> <string>BusinessPath_getDefaultSourceList</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>pay</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default.xml
new file mode 100644
index 0000000000..88f2095416
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_count</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_mt_index</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_tree</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>default</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>default</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Length" module="BTrees.Length"/>
+    </pickle>
+    <pickle> <int>0</int> </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <none/>
+    </pickle>
+  </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <global name="OOBTree" module="BTrees._OOBTree"/>
+    </pickle>
+    <pickle>
+      <none/>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/accounting.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/accounting.xml
new file mode 100644
index 0000000000..4dfead7e2a
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/accounting.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>accounting</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>accounting</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/delivery.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/delivery.xml
new file mode 100644
index 0000000000..840b8d9cd3
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/delivery.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>delivery</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>delivery</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/discount.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/discount.xml
new file mode 100644
index 0000000000..fcc942112c
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/discount.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>discount</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>discount</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/invoicing.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/invoicing.xml
new file mode 100644
index 0000000000..d50cf79f05
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/invoicing.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>invoicing</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>invoicing</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/payment.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/payment.xml
new file mode 100644
index 0000000000..93acec61e6
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/payment.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>payment</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>payment</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/tax.xml b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/tax.xml
new file mode 100644
index 0000000000..d6f1fdda87
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_categories/trade_phase/default/tax.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="Category" module="Products.ERP5Type.Document.Category"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>tax</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Category</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>tax</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_delivery_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_delivery_rule.xml
index c211ef2199..b39d415f30 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_delivery_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_delivery_rule.xml
@@ -39,6 +39,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/delivery</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_delivery_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_rule.xml
index 68031c24ac..a3d0f6c9a8 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_rule.xml
@@ -39,6 +39,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/invoicing</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_invoice_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_transaction_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_transaction_rule.xml
index 105814791a..af4d0426a8 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_transaction_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoice_transaction_rule.xml
@@ -39,6 +39,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/accounting</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_invoice_transaction_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoicing_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoicing_rule.xml
index 2c38e89fc3..9a99ed3f8b 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoicing_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_invoicing_rule.xml
@@ -27,6 +27,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/invoicing</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_invoicing_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml
index 3976da5d9a..8af7b3256c 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_order_rule.xml
@@ -27,6 +27,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/delivery</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_order_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_payment_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_payment_rule.xml
index d9854dfe8a..badeb54e73 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_payment_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_payment_rule.xml
@@ -27,6 +27,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/payment</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_payment_rule</string> </value>
diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml
index d16b10f87c..293d202138 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_rules/new_simple_order_rule.xml
@@ -27,6 +27,14 @@
               <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
             </value>
         </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/delivery</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>default_reference</string> </key>
             <value> <string>default_order_rule</string> </value>
diff --git a/bt5/erp5_simulation/bt/template_path_list b/bt5/erp5_simulation/bt/template_path_list
index 98f9b093b1..eb5678130a 100644
--- a/bt5/erp5_simulation/bt/template_path_list
+++ b/bt5/erp5_simulation/bt/template_path_list
@@ -1,3 +1,7 @@
+business_process_module/erp5_default_business_process
+business_process_module/erp5_default_business_process/**
+portal_categories/trade_phase/default
+portal_categories/trade_phase/default/**
 portal_rules/default_invoicing_rule
 portal_rules/default_invoicing_rule/3
 portal_rules/new_delivery_rule
-- 
2.30.9