From 5e408494053c96e2bc086adef36f9566964471e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 10 Dec 2007 16:20:13 +0000 Subject: [PATCH] add internal money payment module git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18199 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../view.xml | 83 +++ .../accouting_view.xml | 83 +++ .../Internal%20Money%20Payment/fast_input.xml | 101 +++ .../Internal%20Money%20Payment/print.xml | 83 +++ .../Internal%20Money%20Payment/view.xml | 83 +++ .../internal_money_payment_module.xml | 692 ++++++++++++++++++ .../allowed_content_types.xml | 7 + .../hidden_content_type_list.xml | 4 + .../property_sheet_list.xml | 9 +- .../Internal%20Money%20Payment%20Module.xml | 102 +++ .../Internal%20Money%20Payment.xml | 122 +++ .../workflow_chain_type.xml | 4 + .../internal_money_payment_workflow.xml | 66 ++ .../scripts.xml | 43 ++ .../scripts/updateBankingOperation.xml | 168 +++++ .../scripts/validateCounter.xml | 216 ++++++ .../scripts/validateSourceAndDestination.xml | 152 ++++ .../states.xml | 43 ++ .../states/cancelled.xml | 113 +++ .../states/deleted.xml | 107 +++ .../states/delivered.xml | 117 +++ .../states/draft.xml | 125 ++++ .../transitions.xml | 43 ++ .../transitions/cancel.xml | 73 ++ .../transitions/cancel_action.xml | 73 ++ .../transitions/delete.xml | 73 ++ .../transitions/delete_action.xml | 97 +++ .../transitions/deliver.xml | 94 +++ .../transitions/deliver_action.xml | 94 +++ .../variables.xml | 43 ++ .../variables/action.xml | 82 +++ .../variables/actor.xml | 82 +++ .../variables/comment.xml | 82 +++ .../variables/error_message.xml | 63 ++ .../variables/history.xml | 82 +++ .../variables/portal_type.xml | 39 + .../variables/simulation_assigned.xml | 63 ++ .../variables/time.xml | 82 +++ .../worklists.xml | 43 ++ .../worklists/draft.xml | 125 ++++ bt5/erp5_banking_cash/bt/revision | 2 +- .../bt/template_action_path_list | 5 + .../bt/template_module_id_list | 1 + ...late_portal_type_allowed_content_type_list | 3 + ...plate_portal_type_hidden_content_type_list | 2 + .../bt/template_portal_type_id_list | 2 + .../template_portal_type_property_sheet_list | 3 + .../template_portal_type_workflow_chain_list | 2 + .../bt/template_workflow_id_list | 1 + 49 files changed, 3874 insertions(+), 3 deletions(-) create mode 100644 bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment%20Module/view.xml create mode 100644 bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/accouting_view.xml create mode 100644 bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/fast_input.xml create mode 100644 bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/print.xml create mode 100644 bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/view.xml create mode 100644 bt5/erp5_banking_cash/ModuleTemplateItem/internal_money_payment_module.xml create mode 100644 bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment%20Module.xml create mode 100644 bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/updateBankingOperation.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateSourceAndDestination.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/cancelled.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/deleted.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/delivered.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/draft.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel_action.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete_action.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver_action.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/action.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/actor.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/comment.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/error_message.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/history.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/portal_type.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/simulation_assigned.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/time.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists.xml create mode 100644 bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists/draft.xml diff --git a/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment%20Module/view.xml b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment%20Module/view.xml new file mode 100644 index 0000000000..e485a77d9d --- /dev/null +++ b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment%20Module/view.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>view</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>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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/InternalMoneyPaymentModule_viewInternalMoneyPaymentList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/accouting_view.xml b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/accouting_view.xml new file mode 100644 index 0000000000..8cc8320f5a --- /dev/null +++ b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/accouting_view.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>accouting_view</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>4.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View Accounting</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/InternalMoneyPayment_viewAccounting</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/fast_input.xml b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/fast_input.xml new file mode 100644 index 0000000000..0a92b060a7 --- /dev/null +++ b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/fast_input.xml @@ -0,0 +1,101 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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_button</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> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>fast_input</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Add portal content</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>Cash Details Input</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/InternalMoneyPayment_viewInternalMoneyPaymentLineFastInputAction</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${portal_url}/images/cash_out.png</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/print.xml b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/print.xml new file mode 100644 index 0000000000..4d2d47de1c --- /dev/null +++ b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/print.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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_print</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>print</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>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Print</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_printPdf</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/view.xml b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/view.xml new file mode 100644 index 0000000000..f89df2bec8 --- /dev/null +++ b/bt5/erp5_banking_cash/ActionTemplateItem/portal_types/Internal%20Money%20Payment/view.xml @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </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>view</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>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> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/InternalMoneyPayment_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/ModuleTemplateItem/internal_money_payment_module.xml b/bt5/erp5_banking_cash/ModuleTemplateItem/internal_money_payment_module.xml new file mode 100644 index 0000000000..bca2d96be2 --- /dev/null +++ b/bt5/erp5_banking_cash/ModuleTemplateItem/internal_money_payment_module.xml @@ -0,0 +1,692 @@ +<module> + <id>internal_money_payment_module</id> + <permission_list> + <permission type='tuple'> + <name>Access Transient Objects</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access arbitrary user session data</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access contents information</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access future portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access inactive portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access session data</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Accelerated HTTP Cache Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add BTreeFolder2s</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Browser Id Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Action Icons Tools</name> + </permission> + <permission type='tuple'> + <name>Add CMF Active Processs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Caching Policy Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Calendar Tools</name> + </permission> + <permission type='tuple'> + <name>Add CMF Core Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Default Tools</name> + </permission> + <permission type='tuple'> + <name>Add CMF Report Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Setup Tools</name> + </permission> + <permission type='tuple'> + <name>Add CMF Sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMF Unique Id Tools</name> + </permission> + <permission type='tuple'> + <name>Add CMFActivity Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMFCategory Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add CMFMailIn Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Configured CMF Sites</name> + </permission> + <permission type='tuple'> + <name>Add Content Type Registrys</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Cookie Crumblers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Database Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Documents, Images, and Files</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Filesystem Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 OOo Templates</name> + </permission> + <permission type='tuple'> + <name>Add ERP5 PDF Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 PDF Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Publications</name> + </permission> + <permission type='tuple'> + <name>Add ERP5 Reports</name> + </permission> + <permission type='tuple'> + <name>Add ERP5 Sites</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5 Subscriptions</name> + </permission> + <permission type='tuple'> + <name>Add ERP5 Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Catalog Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Form Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Subversion Tools</name> + </permission> + <permission type='tuple'> + <name>Add ERP5SyncML Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ERP5Type Tools</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ExtFiles</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ExtImages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add External Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Filesystem Directory Views</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add LocalContents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add LocalFolders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Localizers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add MailHost objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add MessageCatalogs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Page Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Photo Folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Photos</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Pluggable Index</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Plugin Registrys</name> + </permission> + <permission type='tuple'> + <name>Add Python Scripts</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add RAM Cache Managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ReStructuredText Documents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Session Data Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Site Roots</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Temporary Folder</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Transient Object Container</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add User Folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Virtual Host Monsters</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Vocabularies</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Z Gadfly Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Z MySQL Database Connections</name> + <role>Manager</role> + </permission> + <permission type='list'> + <name>Add Z MySQL Deferred Database Connections</name> + </permission> + <permission type='tuple'> + <name>Add ZCatalogs</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add ZODB Mount Points</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add Zope Tutorials</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal content</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal events</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal folders</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal member</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal topics</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Browser Id Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change DTML Documents</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change DTML Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Database Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change ExtFile/ExtImage</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change External Methods</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Formulator Fields</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Formulator Forms</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Images and Files</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Lock Information</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Page Templates</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Photo</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Python Scripts</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Session Data Manager</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change Versions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change bindings</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change cache managers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change cache settings</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change configuration</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change local roles</name> + </permission> + <permission type='tuple'> + <name>Change permissions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change portal events</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change portal topics</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change proxy roles</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Copy or Move</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Create Transient Objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Create class instances</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Define permissions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Delete objects</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Download ExtFile/ExtImage</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Edit Factories</name> + <role>Manager</role> + </permission> + <permission type='list'> + <name>Edit ParsedXML</name> + </permission> + <permission type='tuple'> + <name>Edit ReStructuredText</name> + <role>Manager</role> + </permission> + <permission type='list'> + <name>Edit target</name> + </permission> + <permission type='tuple'> + <name>FTP access</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Import/Export objects</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Join/leave Versions</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List folder contents</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List portal members</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List undoable changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Log Site Errors</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Log to the Event Log</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Mail forgotten password</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Access Rules</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Groups</name> + </permission> + <permission type='list'> + <name>Manage Selenium test cases</name> + </permission> + <permission type='tuple'> + <name>Manage Transient Object Container</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Vocabulary</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage WebDAV Locks</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage Z Classes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage ZCatalog Entries</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage ZCatalogIndex Entries</name> + <role>Manager</role> + </permission> + <permission type='list'> + <name>Manage extensions</name> + </permission> + <permission type='tuple'> + <name>Manage languages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage messages</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage portal</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage properties</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Manage users</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify Cookie Crumblers</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify portal content</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Open/Close Database Connection</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Open/Close Database Connections</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Query Vocabulary</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Reply to item</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Request review</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Review portal content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Save/discard Version changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Search ZCatalog</name> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Search for principals</name> + </permission> + <permission type='tuple'> + <name>Set own password</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Set own properties</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Take ownership</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Test Database Connections</name> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Translate Content</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Undo changes</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use Database Methods</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use Factories</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Use external editor</name> + </permission> + <permission type='tuple'> + <name>Use mailhost services</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='list'> + <name>View DOM hierarchy</name> + </permission> + <permission type='tuple'> + <name>View History</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View management screens</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV Lock items</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV Unlock items</name> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>WebDAV access</name> + <role>Manager</role> + </permission> + </permission_list> + <portal_type>Internal Money Payment Module</portal_type> + <title>Internal Money Payments</title> +</module> \ No newline at end of file diff --git a/bt5/erp5_banking_cash/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_banking_cash/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index c67a7c0b23..937b85c650 100644 --- a/bt5/erp5_banking_cash/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_banking_cash/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -105,6 +105,13 @@ <portal_type id="Internal Money Deposit Module"> <item>Internal Money Deposit</item> </portal_type> + <portal_type id="Internal Money Payment"> + <item>Cash Delivery Line</item> + <item>Banking Operation Line</item> + </portal_type> + <portal_type id="Internal Money Payment Module"> + <item>Internal Money Payment</item> + </portal_type> <portal_type id="Monetary Destruction"> <item>Monetary Destruction Line</item> </portal_type> diff --git a/bt5/erp5_banking_cash/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_banking_cash/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml index d76e21a41d..5c5121be6a 100644 --- a/bt5/erp5_banking_cash/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml +++ b/bt5/erp5_banking_cash/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml @@ -66,6 +66,10 @@ <item>Cash Delivery Line</item> <item>Banking Operation Line</item> </portal_type> + <portal_type id="Internal Money Payment"> + <item>Cash Delivery Line</item> + <item>Banking Operation Line</item> + </portal_type> <portal_type id="Monetary Destruction"> <item>Monetary Destruction Line</item> </portal_type> diff --git a/bt5/erp5_banking_cash/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_banking_cash/PortalTypePropertySheetTemplateItem/property_sheet_list.xml index 6269f83b85..55e2f68a18 100644 --- a/bt5/erp5_banking_cash/PortalTypePropertySheetTemplateItem/property_sheet_list.xml +++ b/bt5/erp5_banking_cash/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -73,6 +73,11 @@ <item>Price</item> <item>ItemAggregation</item> </portal_type> + <portal_type id="Internal Money Payment"> + <item>Price</item> + <item>ItemAggregation</item> + <item>Amount</item> + </portal_type> <portal_type id="Monetary Destruction"> <item>Amount</item> <item>Account</item> @@ -113,16 +118,16 @@ </portal_type> <portal_type id="Money Deposit"> <item>Arrow</item> - <item>Task</item> <item>Price</item> + <item>Task</item> </portal_type> <portal_type id="Money Deposit Rendering"> <item>Price</item> <item>Amount</item> </portal_type> <portal_type id="Mutilated Banknote"> - <item>Amount</item> <item>MutilatedBanknote</item> + <item>Amount</item> <item>Price</item> </portal_type> <portal_type id="Outgoing Cash Balance Regulation Line"> diff --git a/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment%20Module.xml b/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment%20Module.xml new file mode 100644 index 0000000000..c098e629c0 --- /dev/null +++ b/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment%20Module.xml @@ -0,0 +1,102 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>folder_icon.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Folder</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Folders allow to store a large number of documents (1,000,000 should not\n +be a problem).</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addFolder</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Internal Money Payment Module</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment.xml b/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment.xml new file mode 100644 index 0000000000..62e79398b4 --- /dev/null +++ b/bt5/erp5_banking_cash/PortalTypeTemplateItem/portal_types/Internal%20Money%20Payment.xml @@ -0,0 +1,122 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_actions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_aliases</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_roles</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allowed_content_types</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>base_category_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>document.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>AG Banking Operation</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string> A Document can contain text that can be formatted using\n + *Structured Text* or *HTML*. Text can be automatically translated\n + through the use of \'message catalogs\'.\n +\n + A Document is a terminating leaf\n + in the OFS. It can not contain anything.\n +\n + Document inherits from XMLObject and can\n + be synchronized accross multiple sites.\n +</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addBankingOperation</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>delivery</string> + </tuple> + </value> + </item> + <item> + <key> <string>hidden_content_type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Internal Money Payment</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string>InternalMoneyPayment_init</string> </value> + </item> + <item> + <key> <string>property_sheet_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_banking_cash/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 233ee6237d..013902cbb7 100644 --- a/bt5/erp5_banking_cash/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_banking_cash/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -51,6 +51,10 @@ <type>Internal Money Deposit</type> <workflow>internal_money_deposit_workflow, edit_workflow</workflow> </chain> + <chain> + <type>Internal Money Payment</type> + <workflow>edit_workflow, internal_money_payment_workflow</workflow> + </chain> <chain> <type>Monetary Destruction</type> <workflow>edit_workflow, monetary_destruction_workflow</workflow> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow.xml new file mode 100644 index 0000000000..a62cf66abb --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow.xml @@ -0,0 +1,66 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>internal_money_payment_workflow</string> </value> + </item> + <item> + <key> <string>initial_state</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + <string>Access contents information</string> + <string>Modify portal content</string> + <string>Add portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>state_var</string> </key> + <value> <string>simulation_state</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Internal Money Payment Workflow</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts.xml new file mode 100644 index 0000000000..41c3b9019a --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Scripts" module="Products.DCWorkflow.Scripts"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>scripts</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/updateBankingOperation.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/updateBankingOperation.xml new file mode 100644 index 0000000000..b579c89ff8 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/updateBankingOperation.xml @@ -0,0 +1,168 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string># Note: this script is executed with the proxy role Manager, because this script needs\n +# to use checkbook_module.\n +\n +\n +transaction = state_change[\'object\']\n +line = transaction.get(\'movement\')\n +if line is not None and line.getPortalType() == \'Banking Operation Line\':\n + # This is a single currency operation, so it is not necessary to convert the price.\n + line.setSourceDebit(transaction.getSourceTotalAssetPrice())\n +\n +#transaction.edit(aggregate = check.getRelativeUrl())\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getitem_</string> + <string>transaction</string> + <string>_getattr_</string> + <string>line</string> + <string>None</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>updateBankingOperation</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.xml new file mode 100644 index 0000000000..0b18c35873 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.xml @@ -0,0 +1,216 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n +from Products.ERP5Type.Message import Message\n +\n +transaction = state_change[\'object\']\n +date = transaction.getStartDate()\n +source = transaction.getSource(None)\n +\n +\n +# check we are in an opened accounting day\n +transaction.Baobab_checkCounterDateOpen(site=source, date=transaction.getStartDate())\n +\n +\n +# check again that the counter is open\n +\n +context.Baobab_checkCounterOpened(source)\n +\n +\n +\n +#test if the source or the destination is correct\n +transaction.Base_checkBaobabSourceAndDestination()\n +\n +# Get price and total_price.\n +amount = transaction.getSourceTotalAssetPrice()\n +total_price = transaction.getTotalPrice(portal_type=(\'Cash Delivery Line\',\'Cash Delivery Cell\'), fast=0)\n +\n +if amount != total_price:\n + msg = Message(domain="ui", message="Amount differ from total price.")\n + raise ValidationFailed, (msg,)\n +\n +if source is None:\n + msg = Message(domain=\'ui\', message=\'No counter defined.\')\n + raise ValidationFailed, (msg,)\n +\n +\n +\n +site = transaction.getSourceValue()\n +\n +\n +\n +vault = transaction.getBaobabSource()\n +resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Cash Delivery Line\',same_source=1)\n +\n +#context.log(\'resource\',resource)\n +\n +if resource == 2:\n + msg = Message(domain="ui", message="No Resource.")\n + raise ValidationFailed, (msg,)\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>Products.DCWorkflow.DCWorkflow</string> + <string>ValidationFailed</string> + <string>Products.ERP5Type.Message</string> + <string>Message</string> + <string>_getitem_</string> + <string>transaction</string> + <string>_getattr_</string> + <string>date</string> + <string>None</string> + <string>source</string> + <string>context</string> + <string>amount</string> + <string>total_price</string> + <string>msg</string> + <string>site</string> + <string>vault</string> + <string>resource</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>validateCounter</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateSourceAndDestination.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateSourceAndDestination.xml new file mode 100644 index 0000000000..1a9c603bb7 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateSourceAndDestination.xml @@ -0,0 +1,152 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>transaction = state_change[\'object\']\n +\n +# Check getBaobabSource and getBaobabDestination\n +transaction.Base_checkBaobabSourceAndDestination()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change, **kw</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>kw</string> + <string>_getitem_</string> + <string>transaction</string> + <string>_getattr_</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>validateSourceAndDestination</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states.xml new file mode 100644 index 0000000000..26c46d417e --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="States" module="Products.DCWorkflow.States"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>states</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/cancelled.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/cancelled.xml new file mode 100644 index 0000000000..a1cb0f5a7a --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/cancelled.xml @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cancelled</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cancelled</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/deleted.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/deleted.xml new file mode 100644 index 0000000000..e1f6b81da4 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/deleted.xml @@ -0,0 +1,107 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deleted</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Deleted</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/delivered.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/delivered.xml new file mode 100644 index 0000000000..e5c95f22a6 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/delivered.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delivered</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Delivered</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>cancel</string> + <string>cancel_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + <string>Reviewer</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + <string>Reviewer</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/draft.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/draft.xml new file mode 100644 index 0000000000..f32eef13e4 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/states/draft.xml @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Documents in draft state should never be accounted and should only be visible by their ownner</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Draft</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>cancel</string> + <string>cancel_action</string> + <string>delete</string> + <string>delete_action</string> + <string>deliver</string> + <string>deliver_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + <string>Reviewer</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + <string>Reviewer</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions.xml new file mode 100644 index 0000000000..7e4e3b0184 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Transitions" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>transitions</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel.xml new file mode 100644 index 0000000000..08d46ece56 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cancel</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>cancelled</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel_action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel_action.xml new file mode 100644 index 0000000000..abc805f483 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/cancel_action.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Annuler</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=cancel_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>cancel</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cancel_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cancel</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete.xml new file mode 100644 index 0000000000..3672884308 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delete</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>deleted</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete_action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete_action.xml new file mode 100644 index 0000000000..8ec68627e8 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/delete_action.xml @@ -0,0 +1,97 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>delete</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delete_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Guard</string> + <string>Guard</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Manager</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver.xml new file mode 100644 index 0000000000..797f048ab5 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver.xml @@ -0,0 +1,94 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>updateBankingOperation</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deliver</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>delivered</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string>validateSourceAndDestination</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Pay</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Manager</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver_action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver_action.xml new file mode 100644 index 0000000000..48eaff13e7 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/transitions/deliver_action.xml @@ -0,0 +1,94 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Deliver</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=deliver_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>deliver</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>If information is complete, document can be sent for final cash remittance</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deliver_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string>validateCounter</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Deliver</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Manager</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables.xml new file mode 100644 index 0000000000..2b275991f8 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Variables" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>variables</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/action.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/action.xml new file mode 100644 index 0000000000..211f6e7302 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/action.xml @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>action</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</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>transition/getId|nothing</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/actor.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/actor.xml new file mode 100644 index 0000000000..cfb3dd1b86 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/actor.xml @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Auteur</string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>actor</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</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>user/getUserName</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/comment.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/comment.xml new file mode 100644 index 0000000000..5d4243e7fa --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/comment.xml @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>comment</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</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>python:state_change.kwargs.get(\'comment\',\'\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/error_message.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/error_message.xml new file mode 100644 index 0000000000..ea1ffb9595 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/error_message.xml @@ -0,0 +1,63 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>error_message</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/history.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/history.xml new file mode 100644 index 0000000000..717ebffc4a --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/history.xml @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>history</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</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>state_change/getHistory</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/portal_type.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/portal_type.xml new file mode 100644 index 0000000000..92471fbf6c --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/portal_type.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>portal_type</string> </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/simulation_assigned.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/simulation_assigned.xml new file mode 100644 index 0000000000..ead8ca730f --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/simulation_assigned.xml @@ -0,0 +1,63 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>If set to yes then assigned to worklist</string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>simulation_assigned</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/time.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/time.xml new file mode 100644 index 0000000000..587bdc630c --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/variables/time.xml @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>for_catalog</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>for_status</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>time</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</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>state_change/getDateTime</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists.xml new file mode 100644 index 0000000000..cee05b5813 --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists.xml @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Worklists" module="Products.DCWorkflow.Worklists"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>worklists</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists/draft.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists/draft.xml new file mode 100644 index 0000000000..ccfd4a826e --- /dev/null +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/worklists/draft.xml @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Draft to Validate (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +Base_viewWorklist?simulation_state=draft&portal_type=Internal Money Payment&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Drafts to Validate</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Guard</string> + <string>Guard</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Manager</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <tuple> + <string>Internal Money Payment</string> + </tuple> + </value> + </item> + <item> + <key> <string>simulation_state</string> </key> + <value> + <tuple> + <string>draft</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision index 55a318f19d..8d28c8c9eb 100644 --- a/bt5/erp5_banking_cash/bt/revision +++ b/bt5/erp5_banking_cash/bt/revision @@ -1 +1 @@ -551 \ No newline at end of file +554 \ No newline at end of file diff --git a/bt5/erp5_banking_cash/bt/template_action_path_list b/bt5/erp5_banking_cash/bt/template_action_path_list index 320c1b8927..83c7faf245 100644 --- a/bt5/erp5_banking_cash/bt/template_action_path_list +++ b/bt5/erp5_banking_cash/bt/template_action_path_list @@ -88,6 +88,11 @@ Internal Money Deposit | accouting_view Internal Money Deposit | fast_input Internal Money Deposit | print Internal Money Deposit | view +Internal Money Payment Module | view +Internal Money Payment | accouting_view +Internal Money Payment | fast_input +Internal Money Payment | print +Internal Money Payment | view Monetary Destruction Cell | view Monetary Destruction Line | print Monetary Destruction Line | view diff --git a/bt5/erp5_banking_cash/bt/template_module_id_list b/bt5/erp5_banking_cash/bt/template_module_id_list index 45bbe019e7..0e0cdb0ded 100644 --- a/bt5/erp5_banking_cash/bt/template_module_id_list +++ b/bt5/erp5_banking_cash/bt/template_module_id_list @@ -9,6 +9,7 @@ counter_rendering_module destruction_survey_module foreign_cash_reception_module internal_money_deposit_module +internal_money_payment_module monetary_destruction_module monetary_issue_module monetary_recall_module diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_banking_cash/bt/template_portal_type_allowed_content_type_list index 382eb803e2..5eb6d797b1 100644 --- a/bt5/erp5_banking_cash/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_banking_cash/bt/template_portal_type_allowed_content_type_list @@ -38,6 +38,9 @@ Incoming Mutilated Banknote Line | Cash Delivery Cell Internal Money Deposit Module | Internal Money Deposit Internal Money Deposit | Banking Operation Line Internal Money Deposit | Cash Delivery Line +Internal Money Payment Module | Internal Money Payment +Internal Money Payment | Banking Operation Line +Internal Money Payment | Cash Delivery Line Monetary Destruction Line | Monetary Destruction Cell Monetary Destruction Module | Monetary Destruction Monetary Destruction | Monetary Destruction Line diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_banking_cash/bt/template_portal_type_hidden_content_type_list index 018df1d68e..a0329ebad6 100644 --- a/bt5/erp5_banking_cash/bt/template_portal_type_hidden_content_type_list +++ b/bt5/erp5_banking_cash/bt/template_portal_type_hidden_content_type_list @@ -25,6 +25,8 @@ Incoming Cash To Currency Sale Line | Cash Delivery Cell Incoming Classification Survey Line | Cash Delivery Cell Internal Money Deposit | Banking Operation Line Internal Money Deposit | Cash Delivery Line +Internal Money Payment | Banking Operation Line +Internal Money Payment | Cash Delivery Line Monetary Destruction Cell | Vault Transfer Cell Monetary Destruction Line | Monetary Destruction Cell Monetary Destruction | Monetary Destruction Line diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_id_list b/bt5/erp5_banking_cash/bt/template_portal_type_id_list index 5e3a0f7f72..404578213a 100644 --- a/bt5/erp5_banking_cash/bt/template_portal_type_id_list +++ b/bt5/erp5_banking_cash/bt/template_portal_type_id_list @@ -32,6 +32,8 @@ Incoming Classification Survey Line Incoming Mutilated Banknote Line Internal Money Deposit Internal Money Deposit Module +Internal Money Payment +Internal Money Payment Module Monetary Destruction Monetary Destruction Cell Monetary Destruction Line diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_property_sheet_list b/bt5/erp5_banking_cash/bt/template_portal_type_property_sheet_list index 20a650c3ac..7873223c49 100644 --- a/bt5/erp5_banking_cash/bt/template_portal_type_property_sheet_list +++ b/bt5/erp5_banking_cash/bt/template_portal_type_property_sheet_list @@ -34,6 +34,9 @@ Incoming Classification Survey Line | CashDeliveryLine Incoming Mutilated Banknote Line | CashDeliveryLine Internal Money Deposit | ItemAggregation Internal Money Deposit | Price +Internal Money Payment | Amount +Internal Money Payment | ItemAggregation +Internal Money Payment | Price Monetary Destruction Cell | CashDeliveryLine Monetary Destruction Line | CashDeliveryLine Monetary Destruction | Account diff --git a/bt5/erp5_banking_cash/bt/template_portal_type_workflow_chain_list b/bt5/erp5_banking_cash/bt/template_portal_type_workflow_chain_list index f7ec6b08ef..1c5a2c3308 100644 --- a/bt5/erp5_banking_cash/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_banking_cash/bt/template_portal_type_workflow_chain_list @@ -25,6 +25,8 @@ Foreign Cash Reception | edit_workflow Foreign Cash Reception | foreign_cash_reception_workflow Internal Money Deposit | edit_workflow Internal Money Deposit | internal_money_deposit_workflow +Internal Money Payment | edit_workflow +Internal Money Payment | internal_money_payment_workflow Monetary Destruction | edit_workflow Monetary Destruction | monetary_destruction_workflow Monetary Issue | edit_workflow diff --git a/bt5/erp5_banking_cash/bt/template_workflow_id_list b/bt5/erp5_banking_cash/bt/template_workflow_id_list index 8f6c1e4425..0932fb6dc1 100644 --- a/bt5/erp5_banking_cash/bt/template_workflow_id_list +++ b/bt5/erp5_banking_cash/bt/template_workflow_id_list @@ -9,6 +9,7 @@ counter_rendering_workflow destruction_survey_workflow foreign_cash_reception_workflow internal_money_deposit_workflow +internal_money_payment_workflow monetary_destruction_workflow monetary_issue_workflow monetary_recall_workflow -- 2.30.9