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 index 81f9bc3a12601df172732df78f4eb84ac5f758ff..553908890fa2fbf6b6185061dfcf4047e70f0a6f 100644 --- 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 @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> </pickle> <pickle> <dictionary> @@ -54,23 +51,7 @@ <item> <key> <string>_body</string> </key> <value> <string>order = state_change[\'object\']\n -order_path = order.getPath()\n -path_and_method_id = (order_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n -expand_tag = order_path + \'_expand\'\n -tag = order_path + \'_updateAppliedRule\'\n -\n -priority = 3\n -\n -activate_kw = { \n - \'tag\': expand_tag,\n - \'priority\': priority,\n -}\n -order.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 +order.Delivery_updateSimulation()\n </string> </value> </item> <item> @@ -112,12 +93,6 @@ order.activate(\n <string>_getitem_</string> <string>order</string> <string>_getattr_</string> - <string>order_path</string> - <string>path_and_method_id</string> - <string>expand_tag</string> - <string>tag</string> - <string>priority</string> - <string>activate_kw</string> </tuple> </value> </item> diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index 1c4af3a9338ac27d5f3355de8c0739fb88616201..dca5ef64f9b7f83f8c52582b66abd4b7c7b434b6 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -972 \ No newline at end of file +976 \ No newline at end of file