From 90cbe614760c3641383a08991e2f8db7525bad12 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 28 Nov 2011 11:57:26 +0100
Subject: [PATCH] add select_payment_list action in Payment Transaction Group.

---
 .../select_payment_list.xml                   | 104 ++++++++++++++++++
 bt5/erp5_payment_mean/bt/revision             |   2 +-
 .../bt/template_action_path_list              |   1 +
 3 files changed, 106 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_payment_mean/ActionTemplateItem/portal_types/Payment%20Transaction%20Group/select_payment_list.xml

diff --git a/bt5/erp5_payment_mean/ActionTemplateItem/portal_types/Payment%20Transaction%20Group/select_payment_list.xml b/bt5/erp5_payment_mean/ActionTemplateItem/portal_types/Payment%20Transaction%20Group/select_payment_list.xml
new file mode 100644
index 0000000000..e0b8c4c53c
--- /dev/null
+++ b/bt5/erp5_payment_mean/ActionTemplateItem/portal_types/Payment%20Transaction%20Group/select_payment_list.xml
@@ -0,0 +1,104 @@
+<?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_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>select_payment_list</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Select Payments</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 encoding="cdata"><![CDATA[
+
+string:${object_url}/PaymentTransactionGroup_viewSelectPaymentTransactionLineListDialog?reset:int=1&field_your_limit:int=1&limit:int=1
+
+]]></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: context.getValidationState() == \'open\'</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_payment_mean/bt/revision b/bt5/erp5_payment_mean/bt/revision
index 9a037142aa..9d607966b7 100644
--- a/bt5/erp5_payment_mean/bt/revision
+++ b/bt5/erp5_payment_mean/bt/revision
@@ -1 +1 @@
-10
\ No newline at end of file
+11
\ No newline at end of file
diff --git a/bt5/erp5_payment_mean/bt/template_action_path_list b/bt5/erp5_payment_mean/bt/template_action_path_list
index d24833ea77..fba25b9097 100644
--- a/bt5/erp5_payment_mean/bt/template_action_path_list
+++ b/bt5/erp5_payment_mean/bt/template_action_path_list
@@ -1,4 +1,5 @@
 Payment Transaction Group Module | view
+Payment Transaction Group | select_payment_list
 Payment Transaction Group | view
 Payment Transaction | jump_payment_transaction_group
 Payment Transaction | remove_from_payment_transaction_group_action
\ No newline at end of file
-- 
2.30.9