diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_accounting_period.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_accounting_period.xml deleted file mode 100644 index 7eeef3d545ca0ac37c39f91abd6d54d8bafa0884..0000000000000000000000000000000000000000 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_accounting_period.xml +++ /dev/null @@ -1,89 +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>object_action</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>close_accounting_period</string> </value> - </item> - <item> - <key> <string>permissions</string> </key> - <value> - <tuple> - <string>Modify portal content</string> - </tuple> - </value> - </item> - <item> - <key> <string>priority</string> </key> - <value> <float>15.0</float> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Close Accounting Period</string> </value> - </item> - <item> - <key> <string>visible</string> </key> - <value> <int>0</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}/AccountTransactionModule_ClosePeriod</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_source_invoice.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml similarity index 81% rename from bt5/erp5_accounting/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_source_invoice.xml rename to bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml index 84c71b8204336ef017f77548107b296f115fbca1..a63fe553d4debbf434f47d20ce643d0f07d76e5b 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/view_source_invoice.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/close_transactions.xml @@ -26,7 +26,7 @@ </item> <item> <key> <string>category</string> </key> - <value> <string>object_view</string> </value> + <value> <string>workflow</string> </value> </item> <item> <key> <string>condition</string> </key> @@ -44,7 +44,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>view_source_invoice</string> </value> + <value> <string>close_transactions</string> </value> </item> <item> <key> <string>permissions</string> </key> @@ -56,11 +56,11 @@ </item> <item> <key> <string>priority</string> </key> - <value> <float>1.5</float> </value> + <value> <float>22.0</float> </value> </item> <item> <key> <string>title</string> </key> - <value> <string>View Invoice</string> </value> + <value> <string>Close Transactions</string> </value> </item> <item> <key> <string>visible</string> </key> @@ -83,7 +83,11 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/PurchaseInvoiceTransaction_viewSourceInvoice</string> </value> + <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> @@ -102,7 +106,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>python:object.AccountingTransaction_isSourceView()</string> </value> + <value> <string>python:"Assignor" in object.portal_membership.getAuthenticatedMember().getRolesInContext(object)</string> </value> </item> </dictionary> </pickle>