From 40ad647cb861e94aee8da5db4fc21f2e7891b6f9 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 24 Mar 2010 15:17:52 +0000 Subject: [PATCH] add Trade Model Solver portal type. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34059 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Trade%20Model%20Solver/configuration.xml | 91 ++++++++++ .../Trade%20Model%20Solver/view.xml | 91 ++++++++++ .../allowed_content_types.xml | 1 + .../portal_types/Trade%20Model%20Solver.xml | 166 ++++++++++++++++++ .../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, 359 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%20Solver/configuration.xml create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%20Solver/view.xml create mode 100644 bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Trade%20Model%20Solver.xml diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%20Solver/configuration.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%20Solver/configuration.xml new file mode 100644 index 0000000000..4c964274bc --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%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/Trade%20Model%20Solver/view.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%20Solver/view.xml new file mode 100644 index 0000000000..f4a6ec433a --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Trade%20Model%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 cc36294896..ac4a9d131a 100644 --- a/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -61,6 +61,7 @@ <item>Production Reduction Solver</item> <item>Quantity Split Solver</item> <item>Solver Decision</item> + <item>Trade Model Solver</item> <item>Unify Solver</item> </portal_type> <portal_type id="Solver Tool"> diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Trade%20Model%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Trade%20Model%20Solver.xml new file mode 100644 index 0000000000..22f18a34b0 --- /dev/null +++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Trade%20Model%20Solver.xml @@ -0,0 +1,166 @@ +<?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>_property_domain_dict</string> </key> + <value> + <dictionary> + <item> + <key> <string>short_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>conflicting_solver/portal_types/Accept Solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>configuration_form_id</string> </key> + <value> <string>Solver_viewConfigurationFormBox</string> </value> + </item> + <item> + <key> <string>configuration_groupable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>configuration_property_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>delivery_solver</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Trade Model Solver solves the divergence by accepting the decision and updating a simulation movement, and also updates trade model related movements.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addTradeModelSolver</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>Trade Model Solver</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>line_exclusive</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>line_groupable</string> </key> + <value> <int>0</int> </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>process_exclusive</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>solver_action_title</string> </key> + <value> <string>Accept values from Invoice Line and recalculate Trade Model related Invoice Lines</string> </value> + </item> + <item> + <key> <string>tested_property</string> </key> + <value> + <tuple> + <string>quantity</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_content</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>short_title</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_content</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</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 41acacd590..f05c89edf1 100644 --- a/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -43,6 +43,10 @@ <type>String Divergence Tester</type> <workflow>edit_workflow</workflow> </chain> + <chain> + <type>Trade Model Solver</type> + <workflow>solver_workflow</workflow> + </chain> <chain> <type>Unify Solver</type> <workflow>solver_workflow</workflow> diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision index aa92725341..780fea92d2 100644 --- a/bt5/erp5_simulation/bt/revision +++ b/bt5/erp5_simulation/bt/revision @@ -1 +1 @@ -76 \ No newline at end of file +77 \ 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 8678c56b59..c345760dd7 100644 --- a/bt5/erp5_simulation/bt/template_action_path_list +++ b/bt5/erp5_simulation/bt/template_action_path_list @@ -32,6 +32,8 @@ Solver Type | view String Divergence Tester | configuration String Divergence Tester | predicate String Divergence Tester | view +Trade Model Solver | configuration +Trade Model Solver | view Unify Solver | configuration Unify Solver | view Variation Divergence Tester | 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 ecec14a509..0d693e6707 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 @@ -45,6 +45,7 @@ Solver Process | Adopt Solver Solver Process | Production Reduction Solver Solver Process | Quantity Split Solver Solver Process | Solver Decision +Solver Process | Trade Model Solver Solver Process | Unify Solver Solver Tool | Solver Process Solver Type | Action Information diff --git a/bt5/erp5_simulation/bt/template_portal_type_id_list b/bt5/erp5_simulation/bt/template_portal_type_id_list index 1cf2c15c9f..804972afa1 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_id_list +++ b/bt5/erp5_simulation/bt/template_portal_type_id_list @@ -12,5 +12,6 @@ Solver Process Solver Tool Solver Type String Divergence Tester +Trade Model Solver Unify Solver Variation Divergence Tester \ No newline at end of file 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 3f1f3a77a5..2582a97604 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list @@ -9,5 +9,6 @@ Quantity Cancel Solver | solver_workflow Quantity Split Solver | solver_workflow Solver Process | solver_process_workflow String Divergence Tester | edit_workflow +Trade Model Solver | solver_workflow Unify Solver | solver_workflow Variation Divergence Tester | edit_workflow \ No newline at end of file -- 2.30.9