From bdae967698bc1b8e7b87588c0d8cca59bc177a36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 8 Feb 2012 11:43:52 +0100
Subject: [PATCH] Drop removed form action.

Delivery_viewTradeModelLineList is available only in legacy Business Templates,
and it is configured there.
---
 .../view_trade_model_line_list.xml            | 79 -------------------
 .../view_trade_model_line_list.xml            | 79 -------------------
 bt5/erp5_simplified_invoicing/bt/revision     |  2 +-
 .../bt/template_action_path_list              |  2 -
 4 files changed, 1 insertion(+), 161 deletions(-)
 delete mode 100644 bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
 delete mode 100644 bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml

diff --git a/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml b/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
deleted file mode 100644
index eb5d988e4b..0000000000
--- a/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_trade_model_line_list.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>categories</string> </key>
-            <value>
-              <tuple>
-                <string>action_type/object_view</string>
-              </tuple>
-            </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_trade_model_line_list</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.3</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Trade Model Lines</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml b/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml
deleted file mode 100644
index eb5d988e4b..0000000000
--- a/bt5/erp5_simplified_invoicing/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/view_trade_model_line_list.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>action</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>categories</string> </key>
-            <value>
-              <tuple>
-                <string>action_type/object_view</string>
-              </tuple>
-            </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_trade_model_line_list</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.3</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Trade Model Lines</string> </value>
-        </item>
-        <item>
-            <key> <string>visible</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Delivery_viewTradeModelLineList</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_simplified_invoicing/bt/revision b/bt5/erp5_simplified_invoicing/bt/revision
index f0b5c72cad..4800c7da68 100644
--- a/bt5/erp5_simplified_invoicing/bt/revision
+++ b/bt5/erp5_simplified_invoicing/bt/revision
@@ -1 +1 @@
-57
\ No newline at end of file
+58
\ No newline at end of file
diff --git a/bt5/erp5_simplified_invoicing/bt/template_action_path_list b/bt5/erp5_simplified_invoicing/bt/template_action_path_list
index ead27c60f8..016231e389 100644
--- a/bt5/erp5_simplified_invoicing/bt/template_action_path_list
+++ b/bt5/erp5_simplified_invoicing/bt/template_action_path_list
@@ -8,7 +8,6 @@ Purchase Invoice Transaction | jump_related_order
 Purchase Invoice Transaction | jump_to_related_purchase_packing_list
 Purchase Invoice Transaction | payment_condition
 Purchase Invoice Transaction | view_trade_model
-Purchase Invoice Transaction | view_trade_model_line_list
 Purchase Order | jump_related_invoice
 Sale Invoice Transaction | apply_trade_condition
 Sale Invoice Transaction | confirmed_invoice_view
@@ -18,5 +17,4 @@ Sale Invoice Transaction | jump_related_order
 Sale Invoice Transaction | jump_to_related_sale_packing_list
 Sale Invoice Transaction | payment_condition
 Sale Invoice Transaction | view_trade_model
-Sale Invoice Transaction | view_trade_model_line_list
 Sale Order | jump_related_invoice
\ No newline at end of file
-- 
2.30.9