From 5f8c9df5ea4b96ebbd045566a49ab9c961c8884b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 3 Dec 2007 18:13:47 +0000 Subject: [PATCH] Mass workflow transition actions are no longuer necessery, because the generic action covers the same use case. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17981 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../cancel_transactions.xml | 114 ------------------ .../close_transactions.xml | 114 ------------------ .../confirm_transactions.xml | 93 -------------- .../plan_transactions.xml | 93 -------------- .../validate_transactions.xml | 114 ------------------ bt5/erp5_accounting/bt/revision | 2 +- .../bt/template_action_path_list | 5 - 7 files changed, 1 insertion(+), 534 deletions(-) delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/cancel_transactions.xml delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/confirm_transactions.xml delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/plan_transactions.xml delete mode 100644 bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/validate_transactions.xml diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/cancel_transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/cancel_transactions.xml deleted file mode 100644 index 9102821731..0000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/cancel_transactions.xml +++ /dev/null @@ -1,114 +0,0 @@ -<?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>workflow</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>cancel_transactions</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>23.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Cancel 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 encoding="cdata"><![CDATA[ - -string:${object_url}/Folder_viewWorkflowActionDialog?workflow_action=cancel_action&workflow_id=accounting_workflow&button_title=Cancel - -]]></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:"Assignor" in object.portal_membership.getAuthenticatedMember().getRolesInContext(object)</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml deleted file mode 100644 index a63fe553d4..0000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml +++ /dev/null @@ -1,114 +0,0 @@ -<?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>workflow</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>close_transactions</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>22.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Close 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 encoding="cdata"><![CDATA[ - -string:${object_url}/Folder_viewWorkflowActionDialog?workflow_action=deliver_action&workflow_id=accounting_workflow&button_title=Close Transactions - -]]></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:"Assignor" in object.portal_membership.getAuthenticatedMember().getRolesInContext(object)</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/confirm_transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/confirm_transactions.xml deleted file mode 100644 index d98bfacebe..0000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/confirm_transactions.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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>workflow</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>confirm_transactions</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>20.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Confirm 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 encoding="cdata"><![CDATA[ - -string:${object_url}/Folder_viewWorkflowActionDialog?workflow_action=confirm_action&workflow_id=accounting_workflow&button_title=Confirm Transactions - -]]></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/plan_transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/plan_transactions.xml deleted file mode 100644 index 880b387524..0000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/plan_transactions.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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>workflow</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>plan_transactions</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>19.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Plan 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 encoding="cdata"><![CDATA[ - -string:${object_url}/Folder_viewWorkflowActionDialog?workflow_action=plan_action&workflow_id=accounting_workflow&button_title=Plan Transactions - -]]></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/validate_transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/validate_transactions.xml deleted file mode 100644 index 41c25cace3..0000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/validate_transactions.xml +++ /dev/null @@ -1,114 +0,0 @@ -<?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>workflow</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>validate_transactions</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>21.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Validate 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 encoding="cdata"><![CDATA[ - -string:${object_url}/Folder_viewWorkflowActionDialog?workflow_action=stop_action&workflow_id=accounting_workflow&button_title=Validate Transactions - -]]></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:"Assignee" in object.portal_membership.getAuthenticatedMember().getRolesInContext(object)</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index eed0d1a4ad..5da127eea4 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -506 \ No newline at end of file +507 \ No newline at end of file diff --git a/bt5/erp5_accounting/bt/template_action_path_list b/bt5/erp5_accounting/bt/template_action_path_list index bc307988e4..6b8a2960ef 100644 --- a/bt5/erp5_accounting/bt/template_action_path_list +++ b/bt5/erp5_accounting/bt/template_action_path_list @@ -20,21 +20,16 @@ Accounting Transaction Line | view_destination Accounting Transaction Module | account_statement_report Accounting Transaction Module | balance_sheet_report Accounting Transaction Module | bank_accounts_report -Accounting Transaction Module | cancel_transactions -Accounting Transaction Module | close_transactions -Accounting Transaction Module | confirm_transactions Accounting Transaction Module | create_related_payments Accounting Transaction Module | general_ledger_report Accounting Transaction Module | journal_from_selection Accounting Transaction Module | journal_report Accounting Transaction Module | jump_active_accounting_pref Accounting Transaction Module | jump_bank_accounts -Accounting Transaction Module | plan_transactions Accounting Transaction Module | profit_and_loss_report Accounting Transaction Module | search Accounting Transaction Module | third_parties_report Accounting Transaction Module | trial_balance_report -Accounting Transaction Module | validate_transactions Accounting Transaction Module | view Accounting Transaction | add_accounting_transaction_line Accounting Transaction | create_reversal -- 2.30.9