diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow.xml new file mode 100644 index 0000000000000000000000000000000000000000..0f7401e48e9cefdc5a53df41f9c2df7680ca9077 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow.xml @@ -0,0 +1,46 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>creation_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>trade_model_cell_interaction_workflow</string> </value> + </item> + <item> + <key> <string>manager_bypass</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Trade Model Cell Interaction Workflow</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions.xml new file mode 100644 index 0000000000000000000000000000000000000000..e18bf8cbf778a6808aa24ec39bba4b527d7b1bef --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Interaction" module="Products.ERP5.Interaction"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>interactions</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions/setVariationCategoryList.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions/setVariationCategoryList.xml new file mode 100644 index 0000000000000000000000000000000000000000..bddf1557eb4e59ace3d018f7ad935ade390b8fb5 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/interactions/setVariationCategoryList.xml @@ -0,0 +1,96 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="InteractionDefinition" module="Products.ERP5.Interaction"/> + </pickle> + <pickle> + <dictionary> + <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>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>before_commit_script_name</string> </key> + <value> + <list> + <string>copyVariationToBaseApplication</string> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Copy the variation category into base application of cell</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>setVariationCategoryList</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>_setVariationCategoryList</string> + </list> + </value> + </item> + <item> + <key> <string>once_per_transaction</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Pay Sheet Model Cell</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>temporary_document_disallowed</string> </key> + <value> <int>0</int> </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_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts.xml new file mode 100644 index 0000000000000000000000000000000000000000..072c8f6540c07806bee17a34c920ec09b2de1bd5 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Scripts" module="Products.DCWorkflow.Scripts"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>scripts</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts/copyVariationToBaseApplication.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts/copyVariationToBaseApplication.xml new file mode 100644 index 0000000000000000000000000000000000000000..e24c9aa50f5674dd91b0d2cbc854a7b4c8760215 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/scripts/copyVariationToBaseApplication.xml @@ -0,0 +1,70 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </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>var = state_change[\'object\'].getVariationCategoryList()\n +\n +state_change[\'object\'].log("var = %s" %(var,))\n +state_change[\'object\'].setBaseApplicationList(var)\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>copyVariationToBaseApplication</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/variables.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/variables.xml new file mode 100644 index 0000000000000000000000000000000000000000..6ae03699d19840ac42b097dfc0a5f34edd416170 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/variables.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Variables" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>variables</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/worklists.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/worklists.xml new file mode 100644 index 0000000000000000000000000000000000000000..c3432aa051eac2d67ec0692a384adb38d1b6bac8 --- /dev/null +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/trade_model_cell_interaction_workflow/worklists.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Worklists" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>worklists</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index 5afb033c80748e724e88b9c27f98284b7025656d..9437b2fe7da5b230103b7537601781fb429601b1 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -1104 \ No newline at end of file +1106 diff --git a/bt5/erp5_trade/bt/template_workflow_id_list b/bt5/erp5_trade/bt/template_workflow_id_list index 17d4e7f16480418249ccd430c2f667204610a93e..3c8f2e569fbe77a7f22a7ba9cfa834153ddbeab7 100644 --- a/bt5/erp5_trade/bt/template_workflow_id_list +++ b/bt5/erp5_trade/bt/template_workflow_id_list @@ -5,4 +5,5 @@ order_workflow packing_list_container_workflow packing_list_workflow trade_matrix_workflow -trade_model_line_interaction_workflow \ No newline at end of file +trade_model_line_interaction_workflow +trade_model_cell_interaction_workflow