From 18ad0bd43a310df7edb5288a57a34517bb82a870 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 24 Aug 2009 11:51:50 +0000
Subject: [PATCH] =?UTF-8?q?2009-08-24=20J=C3=A9rome=20*=20move=20previous?=
 =?UTF-8?q?=20tax=20implementation=20in=20compatibility=20business=20templ?=
 =?UTF-8?q?ate.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28582 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Open%20Internal%20Order/view_discount.xml | 77 -------------------
 .../Open%20Internal%20Order/view_tax.xml      | 77 -------------------
 .../Open%20Purchase%20Order/view_discount.xml | 77 -------------------
 .../Open%20Purchase%20Order/view_tax.xml      | 77 -------------------
 .../Open%20Sale%20Order/view_discount.xml     | 77 -------------------
 .../Open%20Sale%20Order/view_tax.xml          | 77 -------------------
 .../allowed_content_types.xml                 | 27 +++----
 .../hidden_content_type_list.xml              | 25 +-----
 .../workflow_chain_type.xml                   |  6 +-
 bt5/erp5_open_trade/bt/change_log             |  3 +
 bt5/erp5_open_trade/bt/comment                |  2 +-
 bt5/erp5_open_trade/bt/revision               |  2 +-
 .../bt/template_action_path_list              |  6 --
 .../bt/template_local_role_list               |  0
 ...late_portal_type_allowed_content_type_list |  9 ---
 ...plate_portal_type_hidden_content_type_list |  6 --
 .../bt/template_portal_type_role_list         |  0
 .../template_portal_type_workflow_chain_list  |  2 -
 18 files changed, 18 insertions(+), 532 deletions(-)
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_discount.xml
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_tax.xml
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_discount.xml
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_tax.xml
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_discount.xml
 delete mode 100644 bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_tax.xml
 create mode 100644 bt5/erp5_open_trade/bt/template_local_role_list
 create mode 100644 bt5/erp5_open_trade/bt/template_portal_type_role_list

diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_discount.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_discount.xml
deleted file mode 100644
index ded55a715e..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_discount.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_discount</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>4.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Discount</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewDiscount</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_tax.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_tax.xml
deleted file mode 100644
index 76bc5f5b4c..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Internal%20Order/view_tax.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_tax</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>3.5</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Tax</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewTax</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_discount.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_discount.xml
deleted file mode 100644
index ded55a715e..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_discount.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_discount</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>4.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Discount</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewDiscount</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_tax.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_tax.xml
deleted file mode 100644
index 76bc5f5b4c..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Purchase%20Order/view_tax.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_tax</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>3.5</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Tax</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewTax</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_discount.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_discount.xml
deleted file mode 100644
index ded55a715e..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_discount.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_discount</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>4.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Discount</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewDiscount</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_tax.xml b/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_tax.xml
deleted file mode 100644
index 76bc5f5b4c..0000000000
--- a/bt5/erp5_open_trade/ActionTemplateItem/portal_types/Open%20Sale%20Order/view_tax.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_view</string> </value>
-        </item>
-        <item>
-            <key> <string>condition</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>view_tax</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-                <string>View</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>3.5</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Tax</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewTax</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_open_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_open_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 92bc0f2030..16fe3681ce 100644
--- a/bt5/erp5_open_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_open_trade/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -1,38 +1,26 @@
 <allowed_content_type_list>
  <portal_type id="Open Internal Order">
-  <item>Discount</item>
-  <item>Discount Line</item>
   <item>Open Sale Order Line</item>
-  <item>Tax Line</item>
   <item>Payment Condition</item>
  </portal_type>
  <portal_type id="Open Internal Order Module">
   <item>Open Internal Order</item>
  </portal_type>
  <portal_type id="Open Order Rule">
-  <item>Category Divergence Tester</item>
-  <item>Quantity Divergence Tester</item>
   <item>Property Divergence Tester</item>
- </portal_type>
- <portal_type id="Rule Tool">
-  <item>Open Order Rule</item>
+  <item>Quantity Divergence Tester</item>
+  <item>Category Divergence Tester</item>
  </portal_type>
  <portal_type id="Open Purchase Order">
-  <item>Open Sale Order Line</item>
-  <item>Discount Line</item>
-  <item>Tax Line</item>
-  <item>Discount</item>
   <item>Payment Condition</item>
+  <item>Open Sale Order Line</item>
  </portal_type>
  <portal_type id="Open Purchase Order Module">
   <item>Open Purchase Order</item>
  </portal_type>
  <portal_type id="Open Sale Order">
-  <item>Open Sale Order Line</item>
-  <item>Tax Line</item>
-  <item>Discount</item>
-  <item>Discount Line</item>
   <item>Payment Condition</item>
+  <item>Open Sale Order Line</item>
  </portal_type>
  <portal_type id="Open Sale Order Module">
   <item>Open Sale Order</item>
@@ -40,10 +28,13 @@
  <portal_type id="Periodicity Line">
   <item>Predicate</item>
  </portal_type>
+ <portal_type id="Rule Tool">
+  <item>Open Order Rule</item>
+ </portal_type>
  <portal_type id="Sale Order Module">
-   <item>Open Sale Order</item>
+  <item>Open Sale Order</item>
  </portal_type>
  <portal_type id="Sale Trade Condition">
   <item>Periodicity Line</item>
  </portal_type>
-</allowed_content_type_list>
+</allowed_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_open_trade/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index 7ab6db5072..71abd871e2 100644
--- a/bt5/erp5_open_trade/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_open_trade/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -1,28 +1,5 @@
 <hidden_content_type_list>
- <portal_type id="Open Internal Order">
-  <item>Discount Line</item>
-  <item>Tax Line</item>
- </portal_type>
- <portal_type id="Open Order Rule">
-  <item>Category Divergence Tester</item>
-  <item>Quantity Divergence Tester</item>
-  <item>Property Divergence Tester</item>
- </portal_type>
- <portal_type id="Open Purchase Order">
-  <item>Discount Line</item>
-  <item>Tax Line</item>
- </portal_type>
- <portal_type id="Open Sale Order">
-  <item>Tax Line</item>
-  <item>Discount Line</item>
- </portal_type>
- <portal_type id="Rule Tool">
-  <item>Open Order Rule</item>
- </portal_type>
  <portal_type id="Periodicity Line">
   <item>Predicate</item>
  </portal_type>
- <portal_type id="Sale Trade Condition">
-  <item>Periodicity Line</item>
- </portal_type>
-</hidden_content_type_list>
+</hidden_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
index 295ab09977..0a9345d73f 100644
--- a/bt5/erp5_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+++ b/bt5/erp5_open_trade/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
@@ -5,10 +5,10 @@
  </chain>
  <chain>
   <type>Open Sale Order</type>
-  <workflow>edit_workflow, open_order_workflow, delivery_tax_interaction_workflow</workflow>
+  <workflow>edit_workflow, open_order_workflow</workflow>
  </chain>
  <chain>
   <type>Open Sale Order Line</type>
-  <workflow>trade_matrix_workflow, edit_workflow, tax_interaction_workflow, pricing_interaction_workflow, order_movement_simulation_interaction_workflow</workflow>
+  <workflow>trade_matrix_workflow, edit_workflow, pricing_interaction_workflow, order_movement_simulation_interaction_workflow</workflow>
  </chain>
-</workflow_chain>
+</workflow_chain>
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/change_log b/bt5/erp5_open_trade/bt/change_log
index e80e4f23cf..3af4f0ec37 100644
--- a/bt5/erp5_open_trade/bt/change_log
+++ b/bt5/erp5_open_trade/bt/change_log
@@ -1,3 +1,6 @@
+2009-08-24 J茅rome
+* move previous tax implementation in compatibility business template.
+
 2009-04-15 Kazuhiko
 * move open order functionality to erp5_open_order BT.
 
diff --git a/bt5/erp5_open_trade/bt/comment b/bt5/erp5_open_trade/bt/comment
index 1e14a8f5fa..4737bfb4e5 100644
--- a/bt5/erp5_open_trade/bt/comment
+++ b/bt5/erp5_open_trade/bt/comment
@@ -1 +1 @@
-Still experimetal.
\ No newline at end of file
+Still experimental.
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/revision b/bt5/erp5_open_trade/bt/revision
index 62f9457511..301160a930 100644
--- a/bt5/erp5_open_trade/bt/revision
+++ b/bt5/erp5_open_trade/bt/revision
@@ -1 +1 @@
-6
\ No newline at end of file
+8
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/template_action_path_list b/bt5/erp5_open_trade/bt/template_action_path_list
index cbed873cfc..e89b803e8b 100644
--- a/bt5/erp5_open_trade/bt/template_action_path_list
+++ b/bt5/erp5_open_trade/bt/template_action_path_list
@@ -8,9 +8,7 @@ Open Internal Order | payment_condition
 Open Internal Order | profile_view
 Open Internal Order | reference_generate
 Open Internal Order | view
-Open Internal Order | view_discount
 Open Internal Order | view_stock
-Open Internal Order | view_tax
 Open Order Rule | view
 Open Purchase Order Module | view
 Open Purchase Order | apply_trade_condition
@@ -22,9 +20,7 @@ Open Purchase Order | payment_condition
 Open Purchase Order | profile_view
 Open Purchase Order | reference_generate
 Open Purchase Order | view
-Open Purchase Order | view_discount
 Open Purchase Order | view_stock
-Open Purchase Order | view_tax
 Open Sale Order Line | price_view
 Open Sale Order Line | quantity_view
 Open Sale Order Line | view
@@ -38,9 +34,7 @@ Open Sale Order | payment_condition
 Open Sale Order | profile_view
 Open Sale Order | reference_generate
 Open Sale Order | view
-Open Sale Order | view_discount
 Open Sale Order | view_stock
-Open Sale Order | view_tax
 Periodicity Line | periodicity
 Periodicity Line | view
 Sale Trade Condition | periodicity_line_list
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/template_local_role_list b/bt5/erp5_open_trade/bt/template_local_role_list
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_open_trade/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_open_trade/bt/template_portal_type_allowed_content_type_list
index 0cf56b6196..b81cddf655 100644
--- a/bt5/erp5_open_trade/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_open_trade/bt/template_portal_type_allowed_content_type_list
@@ -1,24 +1,15 @@
 Open Internal Order Module | Open Internal Order
-Open Internal Order | Discount
-Open Internal Order | Discount Line
 Open Internal Order | Open Sale Order Line
 Open Internal Order | Payment Condition
-Open Internal Order | Tax Line
 Open Order Rule | Category Divergence Tester
 Open Order Rule | Property Divergence Tester
 Open Order Rule | Quantity Divergence Tester
 Open Purchase Order Module | Open Purchase Order
-Open Purchase Order | Discount
-Open Purchase Order | Discount Line
 Open Purchase Order | Open Sale Order Line
 Open Purchase Order | Payment Condition
-Open Purchase Order | Tax Line
 Open Sale Order Module | Open Sale Order
-Open Sale Order | Discount
-Open Sale Order | Discount Line
 Open Sale Order | Open Sale Order Line
 Open Sale Order | Payment Condition
-Open Sale Order | Tax Line
 Periodicity Line | Predicate
 Rule Tool | Open Order Rule
 Sale Order Module | Open Sale Order
diff --git a/bt5/erp5_open_trade/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_open_trade/bt/template_portal_type_hidden_content_type_list
index 89e9e761c5..af40499f1b 100644
--- a/bt5/erp5_open_trade/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_open_trade/bt/template_portal_type_hidden_content_type_list
@@ -1,7 +1 @@
-Open Internal Order | Discount Line
-Open Internal Order | Tax Line
-Open Purchase Order | Discount Line
-Open Purchase Order | Tax Line
-Open Sale Order | Discount Line
-Open Sale Order | Tax Line
 Periodicity Line | Predicate
\ No newline at end of file
diff --git a/bt5/erp5_open_trade/bt/template_portal_type_role_list b/bt5/erp5_open_trade/bt/template_portal_type_role_list
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_open_trade/bt/template_portal_type_workflow_chain_list b/bt5/erp5_open_trade/bt/template_portal_type_workflow_chain_list
index 9612df22ef..9ae62b3b56 100644
--- a/bt5/erp5_open_trade/bt/template_portal_type_workflow_chain_list
+++ b/bt5/erp5_open_trade/bt/template_portal_type_workflow_chain_list
@@ -2,8 +2,6 @@ Open Order Rule | rule_validation_workflow
 Open Sale Order Line | edit_workflow
 Open Sale Order Line | order_movement_simulation_interaction_workflow
 Open Sale Order Line | pricing_interaction_workflow
-Open Sale Order Line | tax_interaction_workflow
 Open Sale Order Line | trade_matrix_workflow
-Open Sale Order | delivery_tax_interaction_workflow
 Open Sale Order | edit_workflow
 Open Sale Order | open_order_workflow
\ No newline at end of file
-- 
2.30.9