diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml deleted file mode 100644 index 747e80a75d5ec159e68ee8c18f244620455caed6..0000000000000000000000000000000000000000 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?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>delivery = state_change[\'object\']\n -delivery.Delivery_expandAndBuild()\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>Delivery_Build</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_updateSimulation.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_updateSimulation.xml deleted file mode 100644 index 2d1572ffec71c449ddc4d295cff98d53f56390e9..0000000000000000000000000000000000000000 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_updateSimulation.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?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>state_change[\'object\'].Delivery_updateSimulation()\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>Delivery_updateSimulation</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/confirm.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/confirm.xml index f599451ffbe829294b78f7b381fa88a8fc5ba4ad..d6fd68c7cc5c14daf2c1e12f1977158ae3da46fb 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/confirm.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/confirm.xml @@ -24,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Delivery_Build</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/plan.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/plan.xml index e6f34a560a375cd83233124411e691c25d9a40e0..1aee3bf42d9311049858f83a5b878bdb2a0ba97b 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/plan.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/plan.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Delivery_updateSimulation</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/start.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/start.xml index f750d2946e2c0ff31cf4daca3270df3ea3668b13..b43036f815d1dbea4073dee86bfbfb4f3a9f57e9 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/start.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/transitions/start.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Delivery_Build</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_Build.xml b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_Build.xml deleted file mode 100644 index 3d0b18f8567bd097dcc91db1bb45131503fc2fd2..0000000000000000000000000000000000000000 --- a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_Build.xml +++ /dev/null @@ -1,119 +0,0 @@ -<?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>"""\n - Builds the delivery.\n -"""\n -from Products.ERP5Type.Log import log\n -delivery = sci[\'object\']\n -delivery_portal_type = delivery.getPortalType()\n -portal_deliveries = sci.getPortal().portal_deliveries\n -\n -builder_by_ptype = {\n - \'Sale Invoice\' : \'advanced_sale_invoice_transaction_builder\',\n - \'Purchase Invoice\' : \'advanced_purchase_invoice_transaction_builder\',\n -}\n -\n -if builder_by_ptype.has_key(delivery_portal_type) :\n - builder = getattr(portal_deliveries, builder_by_ptype[delivery_portal_type], None)\n - if builder is None :\n - log(\'erp5_advanced_invoicing\',\n - \'unable to build : no builder in %s\' % builder_by_ptype[delivery_portal_type])\n - return\n -\n - # build accounting lines\n - method_id_list = (\'expand\', \'edit\', \'updateAppliedRule\', \'Delivery_updateAppliedRule\',\n - \'immediateReindexObject\', \'recursiveImmediateReindexObject\')\n -\n - explanation_uid_list = [delivery.getUid(), ]\n - packing_list = delivery.getCausalityValue(\n - portal_type=(\'Sale Packing List\',\n - \'Purchase Packing List\'))\n - if packing_list is not None:\n - explanation_uid_list.append(packing_list.getUid())\n - order = packing_list.getCausalityValue(\n - portal_type=(\'Sale Order\',\n - \'Purchase Order\'))\n - if order is not None:\n - explanation_uid_list.append(order.getUid())\n -\n -\n - tag = \'invoice_transaction_build_%s\' % delivery.getRelativeUrl()\n - builder.activate(\n - activity=\'SQLQueue\',\n - after_method_id=method_id_list,\n - tag=tag,\n - activate_kw=dict(tag=tag)).build(activate_kw=dict(tag=tag),\n - explanation_uid=explanation_uid_list)\n -\n - # build related payment transactions\n - portal_deliveries.payment_transaction_builder.activate(\n - activity=\'SQLQueue\',\n - after_method_id=method_id_list).build(explanation_uid=explanation_uid_list)\n -\n - # set the object in building state.\n - delivery.startBuilding()\n - delivery.activate(after_tag=tag).updateCausalityState()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>sci</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Delivery_Build</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml deleted file mode 100644 index d18b8cea31c76d8065ddc769fffe133ae36f7c3f..0000000000000000000000000000000000000000 --- a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/scripts/Delivery_createRule.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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>invoice = state_change[\'object\']\n -invoice_path = invoice.getPath()\n -path_and_method_id = (invoice_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n -expand_tag = invoice_path + \'_expand\'\n -tag = invoice_path + \'_updateAppliedRule\'\n -\n -priority = 3\n -\n -activate_kw = { \n - \'tag\': expand_tag,\n - \'priority\': priority,\n -}\n -invoice.activate(\n - after_path_and_method_id=path_and_method_id,\n - after_tag=expand_tag,\n - tag=tag,\n - priority=priority,\n - ).Delivery_updateAppliedRule(activate_kw=activate_kw)\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>Delivery_createRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml index 4c51df2c2652f8da1a64b8c10ad7c98557f45788..53f85f479c8961fe671e512da8216569dc8016da 100644 --- a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml +++ b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/plan.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Delivery_createRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/start.xml b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/start.xml index 4938e645826c4ac9ca09e87d1e37c227cada48af..6d602026d1084f11700ad2ad2f70e8048c56ca9e 100644 --- a/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/start.xml +++ b/bt5/erp5_advanced_invoicing/WorkflowTemplateItem/portal_workflow/invoice_workflow/transitions/start.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Delivery_Build</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Workflow_solveDivergenceAutomatically.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Workflow_solveDivergenceAutomatically.xml index b2da66ed36b27c0d93fd966daa25f7c5ae4a13d4..183ab5f6e5dbc8aa3f65f4ab6019471ac331ce9b 100644 --- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Workflow_solveDivergenceAutomatically.xml +++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Workflow_solveDivergenceAutomatically.xml @@ -53,12 +53,11 @@ <value> <string>delivery = state_change[\'object\']\n \n portal = delivery.getPortalObject()\n -solver_tool = getattr(portal, \'portal_solvers\', None)\n -solver_process_tool = getattr(portal, \'portal_solver_processes\', None)\n -\n -if solver_tool is None or solver_process_tool is None:\n +try:\n + portal.portal_solvers\n + portal.portal_solver_processes\n +except AttributeError:\n delivery.diverge()\n - return\n else:\n solver_tag = \'%s_solve\' % delivery.getPath()\n delivery.activate(tag=solver_tag).Delivery_solveDivergenceAutomatically()\n diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml index a996eae0734d8828ff18be2e912ec44a6e06e197..903677c8bd8a040fc7067c8ee87216e85fb459c4 100644 --- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml +++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/InvoiceTransaction_postGeneration.xml @@ -124,19 +124,9 @@ if invoice.getSimulationState() == \'draft\':\n invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n tag=confirm_tag).Delivery_confirm()\n -else:\n - # call builder just same as after script of \'confirm\' transition\n - invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n - (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n - tag=confirm_tag).Delivery_expandAndBuild()\n \n # First set the invoice in the building state on the causality workflow\n invoice.startBuilding()\n -\n -# Then an activity should put the causality state in diverged or solved\n -invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n - (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n - after_tag=confirm_tag).updateCausalityState()\n ]]></string> </value> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_appliedToRelatedMovement.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_appliedToRelatedMovement.xml deleted file mode 100644 index b388a6bcdd842c2fd1421141b1c70155d7e75616..0000000000000000000000000000000000000000 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_appliedToRelatedMovement.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?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>order = state_change[\'object\']\n -\n -order.applyToOrderRelatedMovement(method_id=\'expand\')\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>Order_appliedToRelatedMovement</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_buildPackingList.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_buildPackingList.xml deleted file mode 100644 index fd5d6c2bb3df068e50deda6f00a0fa42243eacab..0000000000000000000000000000000000000000 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_buildPackingList.xml +++ /dev/null @@ -1,105 +0,0 @@ -<?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 encoding="cdata"><![CDATA[ - -order = state_change[\'object\']\n -business_process = order.getSpecialiseValue()\n -\n -# When a business process is selected as specialise, ProductionOrderModelRule can be used.\n -# But another one is selected, ProductionOrderRule is still used.\n -if (business_process is not None and\n - business_process.getPortalType() in context.getPortalBusinessProcessTypeList()):\n - rule_reference=\'default_production_order_model_rule\'\n - builder_list = []\n - for path in business_process.getBuildablePathValueList(order):\n - builder_list.extend(path.getDeliveryBuilderValueList())\n -else:\n - rule_reference=\'default_production_order_rule\'\n - builder_list = [\n - order.portal_deliveries.production_report_builder,\n - order.portal_deliveries.production_packing_list_builder\n -]\n -\n -order_path = order.getPath()\n -tag = order_path + \'_updateAppliedRule\'\n -expand_tag = order_path + \'_expand\'\n -activate_kw = {\'tag\':expand_tag, \'priority\':3}\n -order.activate(tag=tag, after_tag=expand_tag).updateAppliedRule(rule_reference=rule_reference, activate_kw=activate_kw)\n -\n -for i in xrange(len(builder_list)):\n - if i > 0:\n - after_tag = (tag, expand_tag, \'%s_builder_%s\' % (order_path, i-1))\n - else:\n - after_tag = (tag, expand_tag)\n - builder_list[i].activate(\n - activity=\'SQLQueue\',\n - after_tag=after_tag,\n - tag=\'%s_builder_%s\' % (order_path, i),\n - priority=3).build(explanation_uid=order.getUid(),\n - activate_kw=activate_kw)\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>Order_buildPackingList</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_createOrderRule.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_createOrderRule.xml deleted file mode 100644 index 350a9346ba22d31a48b876db78530bf4b98bf649..0000000000000000000000000000000000000000 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/scripts/Order_createOrderRule.xml +++ /dev/null @@ -1,82 +0,0 @@ -<?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>order = state_change[\'object\']\n -business_process = order.getSpecialiseValue()\n -\n -# When a business process is selected as specialise, ProductionOrderModelRule can be used.\n -# But another one is selected, ProductionOrderRule is still used.\n -if (business_process is not None and\n - business_process.getPortalType() in context.getPortalBusinessProcessTypeList()):\n - rule_reference=\'default_production_order_model_rule\'\n -else:\n - rule_reference=\'default_production_order_rule\'\n -\n -path = order.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -activate_kw = {\'tag\':expand_tag, \'priority\':3}\n -order.activate(tag=tag, after_tag=expand_tag).updateAppliedRule(rule_reference=rule_reference, activate_kw=activate_kw)\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Order_createOrderRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/cancel.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/cancel.xml index b4a0cd857898fb56f7764bd6271a8d93830ef584..99c17f9368058cc7d861a5a5df905f227f36c447 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/cancel.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/cancel.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_appliedToRelatedMovement</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/confirm.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/confirm.xml index 8aa6226fd9df3e88ac18552f203d8aa531a392e6..0e5838ee65f970e70bf90d8ddd9c1d97dde8f9ea 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/confirm.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/confirm.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_buildPackingList</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/order.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/order.xml index 27e7806005a61b63f75bf399c85810d96136ee3b..7197217a761466146c8c6b7e8d2821d142e15624 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/order.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/order.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/plan.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/plan.xml index 210313610b6c9de02484d8dfb1a879bf7dfce6a0..5c29fb7ba57d3d4b8ef8f9fe667d95ba5fccf1af 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/plan.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_order_workflow/transitions/plan.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/scripts/PackingList_updateAppliedRule.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/scripts/PackingList_updateAppliedRule.xml deleted file mode 100644 index 4a3ff4a93837e1e541769c9c5b27ae34731d22f0..0000000000000000000000000000000000000000 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/scripts/PackingList_updateAppliedRule.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?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>packing_list = state_change[\'object\']\n -\n -activate_kw = {}\n -related_order = packing_list.getCausalityValue()\n -path = packing_list.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -activate_kw = {\'tag\':expand_tag,\'priority\':3}\n -after_tag_list = [expand_tag]\n -if related_order is not None:\n - # XXX is it really required?\n - after_tag_list.append(\'%s_expand\' % related_order.getPath())\n -\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -\n -\n -# Make sure to reindex related simulation movement if we are already\n -# simulated, call reindexObject, not immediateReindexObject so that\n -# catalogObjectList will be called with many objects\n -# XXX is it really required?\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n -\n -if packing_list.getCausalityState() == \'draft\':\n - packing_list.startBuilding()\n -# XXX is it really required?\n -packing_list.activate(\n - after_tag = tag,\n -).updateCausalityState()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/confirm.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/confirm.xml index 9feab753596ea0d6c91c9739ae2288dd33c4d71c..0e5838ee65f970e70bf90d8ddd9c1d97dde8f9ea 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/confirm.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/confirm.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/deliver.xml b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/deliver.xml index a69becbfa8039e08c4c7d93d91bfc1951b1cad7a..b23e685465845c786855a3adffa207d40db13d0a 100644 --- a/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/deliver.xml +++ b/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_workflow/transitions/deliver.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml deleted file mode 100644 index 4219b27fd80c02e5273b9c687b517e0932e81cc4..0000000000000000000000000000000000000000 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml +++ /dev/null @@ -1,83 +0,0 @@ -<?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>LOG=lambda msg:context.log("TaskReport_buildInvoice", msg)\n -\n -packing_list = sci[\'object\']\n -delivery_tool = sci.getPortal().portal_deliveries\n -LOG("Task Report : %s"%packing_list.getPath())\n -\n -if hasattr(sci.getPortal(), \'accounting_module\'):\n - if hasattr(delivery_tool, \'task_invoice_builder\'):\n - delivery_tool.task_invoice_builder.activate(\n - after_method_id = [ \'expand\', \n - \'recursiveImmediateReindexObject\',\n - \'immediateReindexObject\' ],\n - ).build()\n - else :\n - packing_list.log("ERP5 Simulation",\n - "Unable to build Invoice from Task Report at %s "\\\n - ": no task_invoice_builder" % packing_list.getPath())\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>sci</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>PackingList_buildInvoice</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_updateAppliedRule.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_updateAppliedRule.xml deleted file mode 100644 index 4a3ff4a93837e1e541769c9c5b27ae34731d22f0..0000000000000000000000000000000000000000 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_updateAppliedRule.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?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>packing_list = state_change[\'object\']\n -\n -activate_kw = {}\n -related_order = packing_list.getCausalityValue()\n -path = packing_list.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -activate_kw = {\'tag\':expand_tag,\'priority\':3}\n -after_tag_list = [expand_tag]\n -if related_order is not None:\n - # XXX is it really required?\n - after_tag_list.append(\'%s_expand\' % related_order.getPath())\n -\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -\n -\n -# Make sure to reindex related simulation movement if we are already\n -# simulated, call reindexObject, not immediateReindexObject so that\n -# catalogObjectList will be called with many objects\n -# XXX is it really required?\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n -\n -if packing_list.getCausalityState() == \'draft\':\n - packing_list.startBuilding()\n -# XXX is it really required?\n -packing_list.activate(\n - after_tag = tag,\n -).updateCausalityState()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReportWorkflow_notifyFinishedTaskReport.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReportWorkflow_notifyFinishedTaskReport.xml index e4dbc0339a1e5cf4fe08d035869c8aa25dc679cb..405f107574842c123ab159e3273e2eab9c93af6a 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReportWorkflow_notifyFinishedTaskReport.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReportWorkflow_notifyFinishedTaskReport.xml @@ -74,8 +74,6 @@ Please look at this URL:\n task_report.ERP5Site_getAbsoluteUrl(), task_report.getRelativeUrl())\n portal.portal_notifications.sendMessage(sender=source_person, recipient=destination_decision_person,\n subject="Task Report Finished", message=message)\n -\n -container.PackingList_updateAppliedRule(state_change)\n </string> </value> </item> <item> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/confirm.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/confirm.xml index 11f3ce08359a97394c564e8408f7def74b927cc4..28e992a62149cf114cc2571b2cbec3d2723d0435 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/confirm.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/confirm.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Confirm Task</string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/start.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/start.xml index 3ec019fce68263fc38ade5bf85b4b04e9bbf1242..093bc068d8c8b55d3dd14e971047fcd7a032ae10 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/start.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/transitions/start.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Start Task</string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_appliedToRelatedMovement.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_appliedToRelatedMovement.xml deleted file mode 100644 index 518aefde967c931c592ba38f0effa56075d8b001..0000000000000000000000000000000000000000 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_appliedToRelatedMovement.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?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>task = state_change[\'object\']\n -\n -task.applyToOrderRelatedMovement(method_id=\'expand\')\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>Task_appliedToRelatedMovement</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_buildTaskReport.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_buildTaskReport.xml deleted file mode 100644 index 5a2e6c0a38d10d7ad9263f0885f0dd4a5d1f9403..0000000000000000000000000000000000000000 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_buildTaskReport.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?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>task = state_change[\'object\']\n -\n -path = task.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -activate_kw = {\'tag\':expand_tag, \'priority\':3}\n -\n -task.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -\n -delivery_builder = task.portal_deliveries.task_report_builder\n -delivery_builder.activate(activity=\'SQLQueue\',after_tag=(tag, expand_tag)).build(explanation_uid=task.getUid())\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>Task_buildTaskReport</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_createOrderRule.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_createOrderRule.xml deleted file mode 100644 index ef1ebb09a253f88f7552fb020cf7298dad777367..0000000000000000000000000000000000000000 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/scripts/Task_createOrderRule.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?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>task = state_change[\'object\']\n -\n -path = task.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -activate_kw = {\'tag\':expand_tag, \'priority\':3}\n -\n -task.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Task_createOrderRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/cancel.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/cancel.xml index 31cae503d85dc6adf2ffad726e0216fed519c7e0..7a90ac8a9704096f535ff5df6e439c35e533c985 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/cancel.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/cancel.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Cancel Task</string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Task_appliedToRelatedMovement</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/confirm.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/confirm.xml index 8c23799b7b9cf3f2be52e9b9683ece7daad43b8e..37dea164a3f1e652f5983d5b8bb10928f55747cf 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/confirm.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/confirm.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Confirm Task</string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Task_buildTaskReport</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/order.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/order.xml index 5fb387d73e1b88b030b3cdff0811cfc1ad210c61..83e59dff9a85f1ec680e6bbf817897d67e1f260c 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/order.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/order.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Order Task</string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Task_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/plan.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/plan.xml index 965f804569c5537190dd5f8616d41ff518c9ccea..e90d6ac17faafdce9ba6f4593f88af3de3f4d9d3 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/plan.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/transitions/plan.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string>Plan Task</string> </value> @@ -42,7 +46,7 @@ </item> <item> <key> <string>script_name</string> </key> - <value> <string>Task_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_buildOnComposedDocument.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_buildOnComposedDocument.xml deleted file mode 100644 index 952815c51b453dda4b4ebb26523721d6d0296e6b..0000000000000000000000000000000000000000 --- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_buildOnComposedDocument.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?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>return context.asComposedDocument().build(explanation=context)\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Delivery_buildOnComposedDocument</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_expandAndBuild.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_expandAndBuild.xml deleted file mode 100644 index 53e8fb8c07034cc9d16774976c4b81817c094f4c..0000000000000000000000000000000000000000 --- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_expandAndBuild.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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>delivery = context\n -delivery_path = delivery.getPath()\n -path_and_method_id = (delivery_path, (\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))\n -expand_tag = delivery_path + \'_expand\'\n -tag = delivery_path + \'_updateAppliedRule\'\n -after_tag = [expand_tag]\n -\n -# wait for expand activities of related documents.\n -# XXX ideally, it should be calculated by explanation tree, instead of causalities.\n -for causality in delivery.getCausalityValueList():\n - causality_path = causality.getPath()\n - after_tag.append(\'%s_expand\' % causality_path)\n - after_tag.append(\'%s_updateAppliedRule\' % causality_path)\n -\n -priority = 3\n -activate_kw = { \n - \'tag\': expand_tag,\n - \'priority\':priority,\n -}\n -delivery.activate(\n - activity=\'SQLQueue\',\n - after_path_and_method_id=path_and_method_id,\n - after_tag=after_tag,\n - tag=tag,\n - priority=priority,\n - serialization_tag=tag,\n - ).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -delivery.activate(activity=\'SQLQueue\', after_tag=(tag, expand_tag)).Delivery_buildOnComposedDocument()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Delivery_expandAndBuild</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_appliedToRelatedMovement.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_appliedToRelatedMovement.xml deleted file mode 100644 index b388a6bcdd842c2fd1421141b1c70155d7e75616..0000000000000000000000000000000000000000 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_appliedToRelatedMovement.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?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>order = state_change[\'object\']\n -\n -order.applyToOrderRelatedMovement(method_id=\'expand\')\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>Order_appliedToRelatedMovement</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_createOrderRule.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_createOrderRule.xml deleted file mode 100644 index 67ce33692a42fc05327eba0d98e18e62cd57cf95..0000000000000000000000000000000000000000 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/scripts/Order_createOrderRule.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?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>order = state_change[\'object\']\n -order.Delivery_updateSimulation()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Order_createOrderRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/confirm.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/confirm.xml index ee1b54cfb6827a63220a71a0511e779427807d40..6793dd3382f4c94ceeec7fc5122b077d0129d389 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/confirm.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/confirm.xml @@ -24,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/order.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/order.xml index a1c6b8168ea02f5de856fe4c7970071a0aac90e9..6b9411f0d7231c9717e69ccee091b624dc9bd6ce 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/order.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/order.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/plan.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/plan.xml index 4971ac7c23c4223f8e6db2727bee8b1f1015ba30..81a918bcec49a7ca01b49a0f26c973192379982c 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/plan.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/order_workflow/transitions/plan.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>Order_createOrderRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml deleted file mode 100644 index 618c4f1a3488ff559ca1fd8309e5b11ab739eea9..0000000000000000000000000000000000000000 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml +++ /dev/null @@ -1,102 +0,0 @@ -<?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>packing_list = state_change[\'object\']\n -\n -activate_kw = {}\n -related_order = packing_list.getCausalityValue()\n -path = packing_list.getPath()\n -tag = \'%s_updateAppliedRule\' % path\n -expand_tag = \'%s_expand\' % path\n -path_and_method_id = (path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n -activate_kw = {\'tag\':expand_tag,\'priority\':3}\n -after_tag_list = [expand_tag]\n -if related_order is not None:\n - related_order_path = related_order.getPath()\n - after_tag_list.append(\'%s_expand\' % related_order_path)\n - after_tag_list.append(\'%s_updateAppliedRule\' % related_order_path)\n -\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - after_path_and_method_id=path_and_method_id,\n - priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n -\n -\n -# Make sure to reindex related simulation movement if we are already\n -# simulated, call reindexObject, not immediateReindexObject so that\n -# catalogObjectList will be called with many objects\n -# XXX is it really required?\n -packing_list.activate(after_tag=after_tag_list,\n - tag=tag,\n - after_path_and_method_id=path_and_method_id,\n - priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n -\n -if packing_list.getCausalityState() == \'draft\':\n - packing_list.startBuilding()\n -# XXX is it really required?\n -packing_list.activate(\n - after_tag = tag,\n -).updateCausalityState()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/confirm.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/confirm.xml index 85c18c66380f4a5fbaf670ebf40ef44cc3bf626b..6328c3015f71c44091eb6b35044ed29e102b61cb 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/confirm.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/confirm.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/deliver.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/deliver.xml index 4f22ac810a72815715a08edafcdf9244147640db..8f1cc87131147f3a86a6fb7612cf41e93d5efe89 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/deliver.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/deliver.xml @@ -10,6 +10,10 @@ <key> <string>actbox_category</string> </key> <value> <string>workflow</string> </value> </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>actbox_name</string> </key> <value> <string></string> </value> @@ -20,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/start.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/start.xml index 302bb259fdb9ead9435ee7d05c9120728cedbd48..11589a1ccdc31ea4cd76b9f08c099d9535a9a766 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/start.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/start.xml @@ -24,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/stop.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/stop.xml index bd31a442a39949ff20ddd93509fafc42aa40f430..786c86bb46ff9670c3dfb30899f0f8c2ca82bf71 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/stop.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/transitions/stop.xml @@ -24,7 +24,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_updateAppliedRule</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key>