diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule/view.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b7a0e0ab4ad3d0ad3025289211e3e16cb872d7a --- /dev/null +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule/view.xml @@ -0,0 +1,85 @@ +<?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>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_view</string> + </tuple> + </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}/Rule_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 261875b0e30207d4772e6b45f85843a8fb57c79d..39fdd28b6d30c901efad4ef4fcba80b98ef734a0 100644 --- a/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_accounting/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -21,6 +21,11 @@ <item>Purchase Invoice Transaction</item> <item>Sale Invoice Transaction</item> </portal_type> + <portal_type id="Accounting Transaction Root Simulation Rule"> + <item>Category Divergence Tester</item> + <item>Property Divergence Tester</item> + <item>Quantity Divergence Tester</item> + </portal_type> <portal_type id="Balance Transaction"> <item>Balance Transaction Line</item> </portal_type> @@ -60,6 +65,7 @@ <item>Purchase Invoice Transaction Line</item> </portal_type> <portal_type id="Rule Tool"> + <item>Accounting Transaction Root Simulation Rule</item> <item>Invoice Root Simulation Rule</item> <item>Invoice Rule</item> <item>Payment Rule</item> diff --git a/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule.xml b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule.xml new file mode 100644 index 0000000000000000000000000000000000000000..3d26b5f1bdf2f208cfc6f1538a4229b7df10434d --- /dev/null +++ b/bt5/erp5_accounting/PortalTypeTemplateItem/portal_types/Accounting%20Transaction%20Root%20Simulation%20Rule.xml @@ -0,0 +1,63 @@ +<?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>acquire_local_roles</string> </key> + <value> <int>1</int> </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>ERP5 Accounting Transaction Root Simulation Rule</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Accounting Transaction Root Simulation Rule object makes sure an Accounting Transaction in the simulation is consistent with the real accounting transaction.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addAccountingTransactionRootSimulationRule</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>rule</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Accounting Transaction Root Simulation Rule</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index c09e026b56d36b17f63671faccd2286e3ea23797..e9862afd4e850475821e247120a5c9af6f533c8b 100644 --- a/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_accounting/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -15,6 +15,10 @@ <type>Accounting Transaction Line</type> <workflow>delivery_movement_causality_interaction_workflow, delivery_movement_simulation_interaction_workflow, edit_workflow</workflow> </chain> + <chain> + <type>Accounting Transaction Root Simulation Rule</type> + <workflow>edit_workflow, rule_validation_workflow</workflow> + </chain> <chain> <type>Balance Transaction</type> <workflow>accounting_workflow, edit_workflow</workflow> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 76482c7d396490d2fd9333c9b318629c471feae4..176746d5a9d53ad7ab0576285b591250562332bf 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1112 \ No newline at end of file +1113 \ No newline at end of file diff --git a/bt5/erp5_accounting/bt/template_action_path_list b/bt5/erp5_accounting/bt/template_action_path_list index 104aacb156130606155fe7c5a3605e876ef1d22a..07c0ba13db5968af45d130597d4f414f027c1f2b 100644 --- a/bt5/erp5_accounting/bt/template_action_path_list +++ b/bt5/erp5_accounting/bt/template_action_path_list @@ -46,6 +46,7 @@ Accounting Transaction | document_list Accounting Transaction | profile_view Accounting Transaction | source_asset Accounting Transaction | view +Accounting Transaction Root Simulation Rule | view Balance Transaction Line | view Balance Transaction | add_balance_transaction_line Balance Transaction | destination_asset diff --git a/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list index bc0c5d5bbe95d4f0618211ccd4751f038bfd8622..e351dd3f436f1a4df55488ab1478ac997f9ac6bb 100644 --- a/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_accounting/bt/template_portal_type_allowed_content_type_list @@ -10,6 +10,9 @@ Accounting Transaction Module | Sale Invoice Transaction Accounting Transaction | Accounting Transaction Line Accounting Transaction | File Accounting Transaction | Image +Accounting Transaction Root Simulation Rule | Category Divergence Tester +Accounting Transaction Root Simulation Rule | Property Divergence Tester +Accounting Transaction Root Simulation Rule | Quantity Divergence Tester Balance Transaction | Balance Transaction Line Invoice Root Simulation Rule | Category Divergence Tester Invoice Root Simulation Rule | Property Divergence Tester @@ -32,6 +35,8 @@ Preference | Sale Invoice Transaction Purchase Invoice Transaction | File Purchase Invoice Transaction | Image Purchase Invoice Transaction | Purchase Invoice Transaction Line +Rule Tool | Accounting Transaction Root Simulation Rule +Rule Tool | Invoice Root Simulation Rule Rule Tool | Invoice Rule Rule Tool | Payment Rule Sale Invoice Transaction | File diff --git a/bt5/erp5_accounting/bt/template_portal_type_id_list b/bt5/erp5_accounting/bt/template_portal_type_id_list index f1bf03d856c09647e1585beda73e756055749216..524c5657d612872bd40d16f403cbde4db4109b99 100644 --- a/bt5/erp5_accounting/bt/template_portal_type_id_list +++ b/bt5/erp5_accounting/bt/template_portal_type_id_list @@ -6,6 +6,7 @@ Accounting Rule Cell Line Accounting Transaction Accounting Transaction Line Accounting Transaction Module +Accounting Transaction Root Simulation Rule Balance Transaction Balance Transaction Line Cash Register diff --git a/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list b/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list index a454fc5d84fe1d41d7b05cc0755e38f2daacbb01..6de99db21a29488b9d741120bc317d071ed0f4a0 100644 --- a/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_accounting/bt/template_portal_type_workflow_chain_list @@ -7,6 +7,8 @@ Accounting Transaction Line | delivery_movement_simulation_interaction_workflow Accounting Transaction Line | edit_workflow Accounting Transaction | accounting_workflow Accounting Transaction | edit_workflow +Accounting Transaction Root Simulation Rule | edit_workflow +Accounting Transaction Root Simulation Rule | rule_validation_workflow Balance Transaction | accounting_workflow Balance Transaction | edit_workflow Cash Register | edit_workflow