From 5cfa4b63d03e8179315bbf844abd0f7664657294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 19 Dec 2005 09:25:19 +0000 Subject: [PATCH] move view transactions from erp5 core to erp5 accounting git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4757 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../jump_active_accounting_pref.xml | 23 +++- .../Bank%20Account/transactions.xml | 114 ++++++++++++++++++ .../Organisation/transactions.xml | 114 ++++++++++++++++++ 3 files changed, 250 insertions(+), 1 deletion(-) create mode 100755 bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml create mode 100755 bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml index 6929329790..6cf894f4ba 100755 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml @@ -30,7 +30,9 @@ </item> <item> <key> <string>condition</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> </item> <item> <key> <string>description</string> </key> @@ -90,4 +92,23 @@ </dictionary> </pickle> </record> + <record id="3" aka="AAAAAAAAAAM="> + <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>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml new file mode 100755 index 0000000000..55c4d345d3 --- /dev/null +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.patches.ActionInformation</string> + <string>PatchedActionInformation</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> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>transactions</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <int>10</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Transactions</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}/BankAccount_viewAccountingTransactionList</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <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>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml new file mode 100755 index 0000000000..abd4510c13 --- /dev/null +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.patches.ActionInformation</string> + <string>PatchedActionInformation</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> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>transactions</string> </value> + </item> + <item> + <key> <string>optional</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <int>10</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Transactions</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}/Entity_viewAccountingTransactionList?form_id=Entity_viewAccountingTransactionList</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <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>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> -- 2.30.9