From fe6a8f4f50b44f355ef9feed029d9fbe01f7dee9 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 22 Dec 2009 14:20:25 +0000 Subject: [PATCH] add Quantity Adoption Solver. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31419 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../configuration.xml | 91 +++++++++++++++++++ .../Quantity%20Adoption%20Solver/view.xml | 91 +++++++++++++++++++ .../allowed_content_types.xml | 1 + .../Quantity%20Adoption%20Solver.xml | 73 +++++++++++++++ .../workflow_chain_type.xml | 4 + bt5/erp5_simulation/bt/revision | 2 +- .../bt/template_action_path_list | 2 + ...late_portal_type_allowed_content_type_list | 1 + .../bt/template_portal_type_id_list | 1 + .../template_portal_type_workflow_chain_list | 1 + 10 files changed, 266 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/configuration.xml create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/view.xml create mode 100644 bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Adoption%20Solver.xml diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/configuration.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/configuration.xml new file mode 100644 index 0000000000..4c964274bc --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/configuration.xml @@ -0,0 +1,91 @@ +<?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> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>configuration</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Configuration</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}/Solver_viewConfiguration</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/view.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/view.xml new file mode 100644 index 0000000000..f4a6ec433a --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Quantity%20Adoption%20Solver/view.xml @@ -0,0 +1,91 @@ +<?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> + <none/> + </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>portal_type</string> </key> + <value> <string>Action Information</string> </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}/TargetSolver_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 8fa579f451..6f76515c61 100644 --- a/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -12,6 +12,7 @@ <portal_type id="Solver Process"> <item>Production Reduction Solver</item> <item>Quantity Accept Solver</item> + <item>Quantity Adoption Solver</item> <item>Quantity Split Solver</item> <item>Resource Adoption Solver</item> <item>Resource Replacement Solver</item> diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Adoption%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Adoption%20Solver.xml new file mode 100644 index 0000000000..6e8179e36d --- /dev/null +++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Adoption%20Solver.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="SolverTypeInformation" module="Products.ERP5Type.Document.SolverTypeInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>configuration_form_id</string> </key> + <value> <string>QuantityReplacementSolver_viewConfiguration</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The quantity adoption solver resets the quantity value of the delivery movement to the total of the quantity values of related simulations. It eventually updates the delivery_ratio in the simulations.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addAdoptSolver</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>target_solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Quantity Adoption Solver</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Solver Type</string> </value> + </item> + <item> + <key> <string>solver_action_title</string> </key> + <value> <string>Replace Quantity</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> <string>quantity</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 97d556baec..f45cc6fb2c 100644 --- a/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -23,6 +23,10 @@ <type>Quantity Accept Solver</type> <workflow>solver_workflow</workflow> </chain> + <chain> + <type>Quantity Adoption Solver</type> + <workflow>solver_workflow</workflow> + </chain> <chain> <type>Quantity Cancel Solver</type> <workflow>solver_workflow</workflow> diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision index 7c091989d0..c24b6ae77d 100644 --- a/bt5/erp5_simulation/bt/revision +++ b/bt5/erp5_simulation/bt/revision @@ -1 +1 @@ -37 \ No newline at end of file +38 \ No newline at end of file diff --git a/bt5/erp5_simulation/bt/template_action_path_list b/bt5/erp5_simulation/bt/template_action_path_list index 8e28392190..1774ae1f69 100644 --- a/bt5/erp5_simulation/bt/template_action_path_list +++ b/bt5/erp5_simulation/bt/template_action_path_list @@ -12,6 +12,8 @@ Quantity Accept Solver | configuration Quantity Accept Solver | view Quantity Cancel Solver | configuration Quantity Cancel Solver | view +Quantity Adoption Solver | configuration +Quantity Adoption Solver | view Quantity Split Solver | configuration Quantity Split Solver | view Resource Adoption Solver | configuration diff --git a/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list index e47ab4722f..21e4d9f6c4 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list @@ -6,6 +6,7 @@ New Order Rule | Variation Divergence Tester Rule Tool | New Order Rule Solver Process | Production Reduction Solver Solver Process | Quantity Accept Solver +Solver Process | Quantity Adoption Solver Solver Process | Quantity Split Solver Solver Process | Resource Adoption Solver Solver Process | Resource Replacement Solver diff --git a/bt5/erp5_simulation/bt/template_portal_type_id_list b/bt5/erp5_simulation/bt/template_portal_type_id_list index dbbbbf64a5..2e610c46fe 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_id_list +++ b/bt5/erp5_simulation/bt/template_portal_type_id_list @@ -4,6 +4,7 @@ Float Divergence Tester New Order Rule Production Reduction Solver Quantity Accept Solver +Quantity Adoption Solver Quantity Cancel Solver Quantity Split Solver Resource Adoption Solver diff --git a/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list b/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list index fa107983d9..c51ed712c7 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list @@ -5,6 +5,7 @@ New Order Rule | edit_workflow New Order Rule | rule_validation_workflow Production Reduction Solver | solver_workflow Quantity Accept Solver | solver_workflow +Quantity Adoption Solver | solver_workflow Quantity Cancel Solver | solver_workflow Quantity Split Solver | solver_workflow Resource Adoption Solver | solver_workflow -- 2.30.9