From 717a107f406a99254db2ea1455b51b055dc3e2be Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 31 Mar 2011 13:47:21 +0000
Subject: [PATCH] Include: Purchase Trade Condition Configurator Item and Sale
 Trade Condition Configurator Item

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44907 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../view.xml                                  | 85 +++++++++++++++++++
 .../view.xml                                  | 85 +++++++++++++++++++
 .../allowed_content_types.xml                 |  2 +
 ...rade%20Condition%20Configurator%20Item.xml | 60 +++++++++++++
 ...rade%20Condition%20Configurator%20Item.xml | 60 +++++++++++++
 bt5/erp5_configurator/bt/revision             |  2 +-
 .../bt/template_action_path_list              |  2 +
 ...late_portal_type_allowed_content_type_list |  2 +
 .../bt/template_portal_type_id_list           |  2 +
 9 files changed, 299 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_configurator/ActionTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item/view.xml
 create mode 100644 bt5/erp5_configurator/ActionTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item/view.xml
 create mode 100644 bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item.xml
 create mode 100644 bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item.xml

diff --git a/bt5/erp5_configurator/ActionTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item/view.xml b/bt5/erp5_configurator/ActionTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item/view.xml
new file mode 100644
index 0000000000..3bdc1329dc
--- /dev/null
+++ b/bt5/erp5_configurator/ActionTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item/view.xml
@@ -0,0 +1,85 @@
+<?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>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</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>View</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}/ConfiguratorItem_view</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_configurator/ActionTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item/view.xml b/bt5/erp5_configurator/ActionTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item/view.xml
new file mode 100644
index 0000000000..3bdc1329dc
--- /dev/null
+++ b/bt5/erp5_configurator/ActionTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item/view.xml
@@ -0,0 +1,85 @@
+<?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>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</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>View</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}/ConfiguratorItem_view</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_configurator/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_configurator/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index 90ff7188ad..c2c90baa5f 100644
--- a/bt5/erp5_configurator/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_configurator/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -27,8 +27,10 @@
   <item>Portal Type Configurator Item</item>
   <item>Portal Type Roles Spreadsheet Configurator Item</item>
   <item>Preference Configurator Item</item>
+  <item>Purchase Trade Condition Configurator Item</item>
   <item>Role Configurator Item</item>
   <item>Rule Configurator Item</item>
+  <item>Sale Trade Condition Configurator Item</item>
   <item>Service Configurator Item</item>
   <item>Site Property Configurator Item</item>
   <item>Solver Configurator Item</item>
diff --git a/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item.xml b/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item.xml
new file mode 100644
index 0000000000..90c68018a3
--- /dev/null
+++ b/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Purchase%20Trade%20Condition%20Configurator%20Item.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Base Type" module="erp5.portal_type"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>content_icon</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Purchase Trade Condition Configurator Item</string> </value>
+        </item>
+        <item>
+            <key> <string>init_script</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Base Type</string> </value>
+        </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>PurchaseTradeConditionConfiguratorItem</string> </value>
+        </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>type_mixin</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item.xml b/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item.xml
new file mode 100644
index 0000000000..d158afb3b1
--- /dev/null
+++ b/bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Sale%20Trade%20Condition%20Configurator%20Item.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Base Type" module="erp5.portal_type"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>content_icon</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Sale Trade Condition Configurator Item</string> </value>
+        </item>
+        <item>
+            <key> <string>init_script</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Base Type</string> </value>
+        </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>SaleTradeConditionConfiguratorItem</string> </value>
+        </item>
+        <item>
+            <key> <string>type_interface</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>type_mixin</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_configurator/bt/revision b/bt5/erp5_configurator/bt/revision
index 03164581e1..fc42ce4bd1 100644
--- a/bt5/erp5_configurator/bt/revision
+++ b/bt5/erp5_configurator/bt/revision
@@ -1 +1 @@
-503
\ No newline at end of file
+504
\ No newline at end of file
diff --git a/bt5/erp5_configurator/bt/template_action_path_list b/bt5/erp5_configurator/bt/template_action_path_list
index 4b10eb1246..1ca7e53749 100644
--- a/bt5/erp5_configurator/bt/template_action_path_list
+++ b/bt5/erp5_configurator/bt/template_action_path_list
@@ -17,8 +17,10 @@ Person Configurator Item | view
 Portal Type Configurator Item | view
 Portal Type Roles Spreadsheet Configurator Item | view
 Preference Configurator Item | view
+Purchase Trade Condition Configurator Item | view
 Role Configurator Item | view
 Rule Configurator Item | view
+Sale Trade Condition Configurator Item | view
 Service Configurator Item | view
 Site Property Configurator Item | view
 Solver Configurator Item | view
diff --git a/bt5/erp5_configurator/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_configurator/bt/template_portal_type_allowed_content_type_list
index 74c33bac0d..c61f951b32 100644
--- a/bt5/erp5_configurator/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_configurator/bt/template_portal_type_allowed_content_type_list
@@ -19,8 +19,10 @@ Configuration Save | Person Configurator Item
 Configuration Save | Portal Type Configurator Item
 Configuration Save | Portal Type Roles Spreadsheet Configurator Item
 Configuration Save | Preference Configurator Item
+Configuration Save | Purchase Trade Condition Configurator Item
 Configuration Save | Role Configurator Item
 Configuration Save | Rule Configurator Item
+Configuration Save | Sale Trade Condition Configurator Item
 Configuration Save | Service Configurator Item
 Configuration Save | Site Property Configurator Item
 Configuration Save | Solver Configurator Item
diff --git a/bt5/erp5_configurator/bt/template_portal_type_id_list b/bt5/erp5_configurator/bt/template_portal_type_id_list
index c9d6de6679..e39f8bb2b4 100644
--- a/bt5/erp5_configurator/bt/template_portal_type_id_list
+++ b/bt5/erp5_configurator/bt/template_portal_type_id_list
@@ -17,8 +17,10 @@ Person Configurator Item
 Portal Type Configurator Item
 Portal Type Roles Spreadsheet Configurator Item
 Preference Configurator Item
+Purchase Trade Condition Configurator Item
 Role Configurator Item
 Rule Configurator Item
+Sale Trade Condition Configurator Item
 Service Configurator Item
 Site Property Configurator Item
 Solver Configurator Item
-- 
2.30.9