From e6a38ab35490f817bcb746ad207c4501d8f145c3 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 12 Jul 2010 15:00:22 +0000
Subject: [PATCH] use Business Link and Trade Model Path instead of Business
 Path.

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37057 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_default_business_process/account.xml | 12 +--
 .../default_path.xml                          | 91 +++++++++++++++++++
 .../erp5_default_business_process/deliver.xml | 12 +--
 .../erp5_default_business_process/invoice.xml | 12 +--
 .../erp5_default_business_process/order.xml   | 12 +--
 .../erp5_default_business_process/pay.xml     | 14 +--
 bt5/erp5_simulation/bt/revision               |  2 +-
 7 files changed, 104 insertions(+), 51 deletions(-)
 create mode 100644 bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/default_path.xml

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
index 5b6009e0a5..5101014388 100644
--- 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
@@ -3,7 +3,7 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <global name="BusinessLink" module="Products.ERP5.Document.BusinessLink"/>
         <tuple/>
       </tuple>
     </pickle>
@@ -107,10 +107,6 @@
               <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>
@@ -130,11 +126,7 @@
         </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>
+            <value> <string>Business Link</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/default_path.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/default_path.xml
new file mode 100644
index 0000000000..4e17b9fefd
--- /dev/null
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/default_path.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="TradeModelPath" module="Products.ERP5Type.Document.TradeModelPath"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_identity_criterion</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>_range_criterion</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>trade_phase/default/accounting</string>
+                <string>trade_phase/default/delivery</string>
+                <string>trade_phase/default/discount</string>
+                <string>trade_phase/default/invoicing</string>
+                <string>trade_phase/default/order</string>
+                <string>trade_phase/default/payment</string>
+                <string>trade_phase/default/tax</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>default_path</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Trade Model Path</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary/>
+            </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
index 67be532140..1c54523ab8 100644
--- 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
@@ -3,7 +3,7 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <global name="BusinessLink" module="Products.ERP5.Document.BusinessLink"/>
         <tuple/>
       </tuple>
     </pickle>
@@ -106,10 +106,6 @@
               <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>
@@ -133,11 +129,7 @@
         </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>
+            <value> <string>Business Link</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
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
index c48fc8d038..3e88d802bb 100644
--- 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
@@ -3,7 +3,7 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <global name="BusinessLink" module="Products.ERP5.Document.BusinessLink"/>
         <tuple/>
       </tuple>
     </pickle>
@@ -106,10 +106,6 @@
               <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>
@@ -129,11 +125,7 @@
         </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>
+            <value> <string>Business Link</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/order.xml b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/order.xml
index 1fc1a0108f..64a611c35e 100644
--- a/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/order.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/business_process_module/erp5_default_business_process/order.xml
@@ -3,7 +3,7 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <global name="BusinessLink" module="Products.ERP5.Document.BusinessLink"/>
         <tuple/>
       </tuple>
     </pickle>
@@ -104,10 +104,6 @@
               <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>
@@ -127,11 +123,7 @@
         </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>
+            <value> <string>Business Link</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
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
index ae4e3d725b..f19eec17b3 100644
--- 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
@@ -3,7 +3,7 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <global name="BusinessPath" module="Products.ERP5Type.Document.BusinessPath"/>
+        <global name="BusinessLink" module="Products.ERP5.Document.BusinessLink"/>
         <tuple/>
       </tuple>
     </pickle>
@@ -83,6 +83,8 @@
                 <string>trade_phase/default/payment</string>
                 <string>predecessor/trade_state/accounted</string>
                 <string>successor/trade_state/paid</string>
+                <string>source/account_module/bank</string>
+                <string>destination/account_module/bank</string>
               </tuple>
             </value>
         </item>
@@ -96,10 +98,6 @@
               <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>
@@ -110,11 +108,7 @@
         </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>
+            <value> <string>Business Link</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision
index 871727de1f..615be700b9 100644
--- a/bt5/erp5_simulation/bt/revision
+++ b/bt5/erp5_simulation/bt/revision
@@ -1 +1 @@
-84
+85
\ No newline at end of file
-- 
2.30.9