From c1feb6c2a21495942ead5b4b7bd620452affe5f4 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 30 Oct 2007 01:42:13 +0000
Subject: [PATCH] 2007-10-30 yo * Set pricing_interaction_workflow to
 Container, Container Line, Internal Packing List Line, Inventory Line,
 Purchase Order Line, Purchase Packing List Line, Returned Sale Packing List
 Line, Sale Order Line, and Sale Packing List Line.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17274 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../workflow_chain_type.xml                   | 24 +++++++++++--------
 bt5/erp5_trade/bt/change_log                  |  3 +++
 bt5/erp5_trade/bt/revision                    |  2 +-
 .../template_portal_type_workflow_chain_list  |  9 +++++++
 bt5/erp5_trade/bt/template_tool_id_list       |  0
 5 files changed, 27 insertions(+), 11 deletions(-)
 create mode 100644 bt5/erp5_trade/bt/template_tool_id_list

diff --git a/bt5/erp5_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
index d6de5231c1..76602ed192 100644
--- a/bt5/erp5_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+++ b/bt5/erp5_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
@@ -1,7 +1,7 @@
 <workflow_chain>
  <chain>
   <type>Container</type>
-  <workflow>edit_workflow</workflow>
+  <workflow>pricing_interaction_workflow, edit_workflow</workflow>
  </chain>
  <chain>
   <type>Container Cell</type>
@@ -9,7 +9,7 @@
  </chain>
  <chain>
   <type>Container Line</type>
-  <workflow>edit_workflow, container_interaction_workflow, trade_matrix_workflow</workflow>
+  <workflow>pricing_interaction_workflow, edit_workflow, trade_matrix_workflow, container_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Delivery Cell</type>
@@ -29,7 +29,7 @@
  </chain>
  <chain>
   <type>Internal Packing List Line</type>
-  <workflow>edit_workflow, trade_matrix_workflow</workflow>
+  <workflow>trade_matrix_workflow, edit_workflow, pricing_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Inventory</type>
@@ -37,7 +37,7 @@
  </chain>
  <chain>
   <type>Inventory Line</type>
-  <workflow>trade_matrix_workflow, edit_workflow</workflow>
+  <workflow>trade_matrix_workflow, edit_workflow, pricing_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Order Rule</type>
@@ -53,11 +53,11 @@
  </chain>
  <chain>
   <type>Purchase Order Cell</type>
-  <workflow>order_movement_simulation_interaction_workflow, edit_workflow</workflow>
+  <workflow>edit_workflow, order_movement_simulation_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Purchase Order Line</type>
-  <workflow>trade_matrix_workflow, edit_workflow, order_movement_simulation_interaction_workflow</workflow>
+  <workflow>trade_matrix_workflow, pricing_interaction_workflow, edit_workflow, order_movement_simulation_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Purchase Packing List</type>
@@ -69,7 +69,7 @@
  </chain>
  <chain>
   <type>Purchase Packing List Line</type>
-  <workflow>delivery_movement_simulation_interaction_workflow, trade_matrix_workflow, delivery_movement_causality_interaction_workflow, edit_workflow</workflow>
+  <workflow>delivery_movement_simulation_interaction_workflow, trade_matrix_workflow, delivery_movement_causality_interaction_workflow, pricing_interaction_workflow, edit_workflow</workflow>
  </chain>
  <chain>
   <type>Purchase Supply</type>
@@ -87,6 +87,10 @@
   <type>Returned Sale Packing List</type>
   <workflow>edit_workflow, packing_list_workflow</workflow>
  </chain>
+ <chain>
+  <type>Returned Sale Packing List Line</type>
+  <workflow>pricing_interaction_workflow</workflow>
+ </chain>
  <chain>
   <type>Sale Order</type>
   <workflow>order_workflow, order_simulation_interaction_workflow, edit_workflow</workflow>
@@ -97,11 +101,11 @@
  </chain>
  <chain>
   <type>Sale Order Line</type>
-  <workflow>trade_matrix_workflow, order_movement_simulation_interaction_workflow, edit_workflow</workflow>
+  <workflow>pricing_interaction_workflow, order_movement_simulation_interaction_workflow, trade_matrix_workflow, edit_workflow</workflow>
  </chain>
  <chain>
   <type>Sale Packing List</type>
-  <workflow>edit_workflow, packing_list_causality_workflow, delivery_causality_interaction_workflow, packing_list_workflow, packing_list_container_workflow, delivery_simulation_interaction_workflow</workflow>
+  <workflow>packing_list_causality_workflow, edit_workflow, delivery_causality_interaction_workflow, packing_list_workflow, packing_list_container_workflow, delivery_simulation_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Sale Packing List Cell</type>
@@ -109,7 +113,7 @@
  </chain>
  <chain>
   <type>Sale Packing List Line</type>
-  <workflow>delivery_movement_simulation_interaction_workflow, trade_matrix_workflow, container_interaction_workflow, delivery_movement_causality_interaction_workflow, edit_workflow</workflow>
+  <workflow>delivery_movement_simulation_interaction_workflow, trade_matrix_workflow, container_interaction_workflow, pricing_interaction_workflow, edit_workflow, delivery_movement_causality_interaction_workflow</workflow>
  </chain>
  <chain>
   <type>Sale Supply</type>
diff --git a/bt5/erp5_trade/bt/change_log b/bt5/erp5_trade/bt/change_log
index 9f88f0a36d..667913772f 100644
--- a/bt5/erp5_trade/bt/change_log
+++ b/bt5/erp5_trade/bt/change_log
@@ -1,3 +1,6 @@
+2007-10-30 yo
+* Set pricing_interaction_workflow to Container, Container Line, Internal Packing List Line, Inventory Line, Purchase Order Line, Purchase Packing List Line, Returned Sale Packing List Line, Sale Order Line, and Sale Packing List Line.
+
 2007-09-30 yo
 * Clean up the actions of portal types.
 
diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision
index 50f0bcd375..eafdfb06c5 100644
--- a/bt5/erp5_trade/bt/revision
+++ b/bt5/erp5_trade/bt/revision
@@ -1 +1 @@
-135
\ No newline at end of file
+138
\ No newline at end of file
diff --git a/bt5/erp5_trade/bt/template_portal_type_workflow_chain_list b/bt5/erp5_trade/bt/template_portal_type_workflow_chain_list
index 82bb27765f..7bab95bbdc 100644
--- a/bt5/erp5_trade/bt/template_portal_type_workflow_chain_list
+++ b/bt5/erp5_trade/bt/template_portal_type_workflow_chain_list
@@ -2,17 +2,21 @@ Container Cell | container_interaction_workflow
 Container Cell | edit_workflow
 Container Line | container_interaction_workflow
 Container Line | edit_workflow
+Container Line | pricing_interaction_workflow
 Container Line | trade_matrix_workflow
 Container | edit_workflow
+Container | pricing_interaction_workflow
 Delivery Cell | delivery_movement_causality_interaction_workflow
 Delivery Cell | delivery_movement_simulation_interaction_workflow
 Delivery Rule | edit_workflow
 Discount | edit_workflow
 Internal Packing List Line | edit_workflow
+Internal Packing List Line | pricing_interaction_workflow
 Internal Packing List Line | trade_matrix_workflow
 Internal Packing List | edit_workflow
 Internal Packing List | internal_packing_list_workflow
 Inventory Line | edit_workflow
+Inventory Line | pricing_interaction_workflow
 Inventory Line | trade_matrix_workflow
 Inventory | edit_workflow
 Inventory | inventory_workflow
@@ -22,6 +26,7 @@ Purchase Order Cell | edit_workflow
 Purchase Order Cell | order_movement_simulation_interaction_workflow
 Purchase Order Line | edit_workflow
 Purchase Order Line | order_movement_simulation_interaction_workflow
+Purchase Order Line | pricing_interaction_workflow
 Purchase Order Line | trade_matrix_workflow
 Purchase Order | edit_workflow
 Purchase Order | order_simulation_interaction_workflow
@@ -31,6 +36,7 @@ Purchase Packing List Cell | delivery_movement_simulation_interaction_workflow
 Purchase Packing List Line | delivery_movement_causality_interaction_workflow
 Purchase Packing List Line | delivery_movement_simulation_interaction_workflow
 Purchase Packing List Line | edit_workflow
+Purchase Packing List Line | pricing_interaction_workflow
 Purchase Packing List Line | trade_matrix_workflow
 Purchase Packing List | delivery_causality_interaction_workflow
 Purchase Packing List | delivery_simulation_interaction_workflow
@@ -41,12 +47,14 @@ Purchase Supply Line | edit_workflow
 Purchase Supply Line | supply_line_interaction_workflow
 Purchase Supply | edit_workflow
 Purchase Trade Condition | edit_workflow
+Returned Sale Packing List Line | pricing_interaction_workflow
 Returned Sale Packing List | edit_workflow
 Returned Sale Packing List | packing_list_workflow
 Sale Order Cell | edit_workflow
 Sale Order Cell | order_movement_simulation_interaction_workflow
 Sale Order Line | edit_workflow
 Sale Order Line | order_movement_simulation_interaction_workflow
+Sale Order Line | pricing_interaction_workflow
 Sale Order Line | trade_matrix_workflow
 Sale Order | edit_workflow
 Sale Order | order_simulation_interaction_workflow
@@ -58,6 +66,7 @@ Sale Packing List Line | container_interaction_workflow
 Sale Packing List Line | delivery_movement_causality_interaction_workflow
 Sale Packing List Line | delivery_movement_simulation_interaction_workflow
 Sale Packing List Line | edit_workflow
+Sale Packing List Line | pricing_interaction_workflow
 Sale Packing List Line | trade_matrix_workflow
 Sale Packing List | delivery_causality_interaction_workflow
 Sale Packing List | delivery_simulation_interaction_workflow
diff --git a/bt5/erp5_trade/bt/template_tool_id_list b/bt5/erp5_trade/bt/template_tool_id_list
new file mode 100644
index 0000000000..e69de29bb2
-- 
2.30.9