From d8011ca68c8d36de03cc31aad5cd9e74defd9ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 2 May 2006 11:46:02 +0000 Subject: [PATCH] commit new action on core module git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7008 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Banknote/{translate.xml => history.xml} | 18 +++- .../portal_types/Banknote/metadata.xml | 93 +++++++++++++++++++ .../portal_types/Banknote/view.xml | 8 ++ .../portal_types/Coin/history.xml | 93 +++++++++++++++++++ .../portal_types/Coin/metadata.xml | 93 +++++++++++++++++++ .../portal_types/Coin/view.xml | 8 ++ .../bt/template_action_path_list | 5 +- 7 files changed, 312 insertions(+), 6 deletions(-) rename bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/{translate.xml => history.xml} (79%) create mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/metadata.xml create mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/history.xml create mode 100644 bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/metadata.xml diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/translate.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/history.xml similarity index 79% rename from bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/translate.xml rename to bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/history.xml index 707a800df5..b6c47d25b0 100644 --- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/translate.xml +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/history.xml @@ -26,7 +26,7 @@ </item> <item> <key> <string>category</string> </key> - <value> <string>object_action</string> </value> + <value> <string>object_view</string> </value> </item> <item> <key> <string>condition</string> </key> @@ -36,15 +36,23 @@ <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>translate</string> </value> + <value> <string>history</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </value> </item> <item> <key> <string>permissions</string> </key> <value> <tuple> - <string>Translate Content</string> + <string>View</string> </tuple> </value> </item> @@ -54,7 +62,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Translate</string> </value> + <value> <string>History</string> </value> </item> <item> <key> <string>visible</string> </key> @@ -77,7 +85,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/translation_template_view</string> </value> + <value> <string>string:${object_url}/Base_viewHistory</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/metadata.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/metadata.xml new file mode 100644 index 0000000000..b038135d15 --- /dev/null +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/metadata.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>metadata</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Manage portal</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Metadata</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> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewMetadata</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/view.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/view.xml index c6c5d6d804..514e31b43d 100644 --- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/view.xml +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Banknote/view.xml @@ -36,10 +36,18 @@ <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</string> </value> </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </value> + </item> <item> <key> <string>permissions</string> </key> <value> diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/history.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/history.xml new file mode 100644 index 0000000000..b6c47d25b0 --- /dev/null +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/history.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>history</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </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>History</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> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewHistory</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/metadata.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/metadata.xml new file mode 100644 index 0000000000..b038135d15 --- /dev/null +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/metadata.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ActionInformation</string> + <string>ActionInformation</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>metadata</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Manage portal</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Metadata</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> + <tuple> + <string>Products.CMFCore.Expression</string> + <string>Expression</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_viewMetadata</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/view.xml b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/view.xml index adab34f5ad..d2f524fe65 100644 --- a/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/view.xml +++ b/bt5/erp5_banking_core/ActionTemplateItem/portal_types/Coin/view.xml @@ -36,10 +36,18 @@ <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</string> </value> </item> + <item> + <key> <string>optional</string> </key> + <value> <int>0</int> </value> + </item> <item> <key> <string>permissions</string> </key> <value> diff --git a/bt5/erp5_banking_core/bt/template_action_path_list b/bt5/erp5_banking_core/bt/template_action_path_list index faafa82d13..f4c019b9ff 100644 --- a/bt5/erp5_banking_core/bt/template_action_path_list +++ b/bt5/erp5_banking_core/bt/template_action_path_list @@ -22,7 +22,8 @@ Banking Operation Line | history Banking Operation Line | metadata Banking Operation Line | print Banking Operation Line | view -Banknote | translate +Banknote | history +Banknote | metadata Banknote | view Cash Delivery Cell | metadata Cash Delivery Cell | view @@ -45,6 +46,8 @@ Checkbook | history Checkbook | metadata Checkbook | print Checkbook | view +Coin | history +Coin | metadata Coin | view Counter Date Module | list_ui Counter Date Module | sort_on -- 2.30.9