From 081d2c2e5dbea31f16ccf9f55ebc1939d50a30e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 2 Jul 2009 16:03:54 +0000
Subject: [PATCH]  - move view action for Invoice Line from erp5_bpm

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27879 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Invoice%20Line/view_trade_model.xml       | 77 +++++++++++++++++++
 bt5/erp5_invoicing/bt/revision                |  2 +-
 .../bt/template_action_path_list              |  1 +
 3 files changed, 79 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_invoicing/ActionTemplateItem/portal_types/Invoice%20Line/view_trade_model.xml

diff --git a/bt5/erp5_invoicing/ActionTemplateItem/portal_types/Invoice%20Line/view_trade_model.xml b/bt5/erp5_invoicing/ActionTemplateItem/portal_types/Invoice%20Line/view_trade_model.xml
new file mode 100644
index 0000000000..ffc738be5c
--- /dev/null
+++ b/bt5/erp5_invoicing/ActionTemplateItem/portal_types/Invoice%20Line/view_trade_model.xml
@@ -0,0 +1,77 @@
+<?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_trade_model</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>2.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Trade Model</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}/DeliveryLine_viewAggregatedAmountList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision
index dd4a90065c..b8e817d4f8 100644
--- a/bt5/erp5_invoicing/bt/revision
+++ b/bt5/erp5_invoicing/bt/revision
@@ -1 +1 @@
-254
\ No newline at end of file
+255
\ No newline at end of file
diff --git a/bt5/erp5_invoicing/bt/template_action_path_list b/bt5/erp5_invoicing/bt/template_action_path_list
index ae60a0a843..f03761ead6 100644
--- a/bt5/erp5_invoicing/bt/template_action_path_list
+++ b/bt5/erp5_invoicing/bt/template_action_path_list
@@ -1,6 +1,7 @@
 Invoice Line | price
 Invoice Line | quantity
 Invoice Line | view
+Invoice Line | view_trade_model
 Invoice Transaction Rule | divergence
 Invoice Transaction Rule | view
 Invoicing Rule | view
-- 
2.30.9