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 index a2bb632fe96978b2878d1d76278f318f86803934..cc2ffa14c00eddf7e515cb8bf5254349d023b759 100644 --- 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 @@ -57,21 +57,21 @@ \n activate_kw = {}\n related_order = packing_list.getCausalityValue()\n -after_path_list = []\n +after_tag_list = []\n if related_order is not None:\n - after_path_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n - after_path_list.append(related_order.getPath() + \'_expand\')\n + after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n + after_tag_list.append(related_order.getPath() + \'_expand\')\n tag = packing_list.getPath()+\'_expand\'\n activate_kw = {\'tag\':tag,\'priority\':3}\n \n -packing_list.activate(after_path=after_path_list,tag=tag,\n +packing_list.activate(after_tag=after_tag_list,tag=tag,\n priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\',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 -packing_list.activate(after_path=after_path_list,tag=tag,\n +packing_list.activate(after_tag=after_tag_list,tag=tag,\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n \n packing_list.startBuilding()\n @@ -121,7 +121,7 @@ packing_list.activate(\n <string>activate_kw</string> <string>_getattr_</string> <string>related_order</string> - <string>after_path_list</string> + <string>after_tag_list</string> <string>None</string> <string>tag</string> </tuple> diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision index 116f2e3e6285b8735c29a9f35482b10406c806c0..c0db21d808434d1d2d318e959bc4c7c190a76dcf 100644 --- a/bt5/erp5_mrp/bt/revision +++ b/bt5/erp5_mrp/bt/revision @@ -1 +1 @@ -391 \ No newline at end of file +392 \ No newline at end of file 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 index f36b79874a411176a7c0e0c4bc1af639951c68af..3ff2f5efeb17948d82b4ce11fad13e069f890d59 100644 --- 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 @@ -61,21 +61,21 @@ packing_list = state_change[\'object\']\n \n activate_kw = {}\n related_order = packing_list.getCausalityValue()\n -after_path_list = []\n +after_tag_list = []\n if related_order is not None:\n - after_path_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n - after_path_list.append(related_order.getPath() + \'_expand\')\n + after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n + after_tag_list.append(related_order.getPath() + \'_expand\')\n tag = packing_list.getPath()+\'_expand\'\n activate_kw = {\'tag\':tag,\'priority\':3}\n \n -packing_list.activate(after_path=after_path_list,tag=tag,\n +packing_list.activate(after_tag=after_tag_list,tag=tag,\n priority=3).updateAppliedRule(rule_id = \'default_delivery_rule\',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 -packing_list.activate(after_path=after_path_list,tag=tag,\n +packing_list.activate(after_tag=after_tag_list,tag=tag,\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n \n packing_list.startBuilding()\n @@ -126,7 +126,7 @@ packing_list.activate(\n <string>activate_kw</string> <string>_getattr_</string> <string>related_order</string> - <string>after_path_list</string> + <string>after_tag_list</string> <string>None</string> <string>tag</string> </tuple> diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index 5628fa72e96ce2e8a8bb9acda2e338c4deb08e13..c3282600a47c138af5401a9733cee2ed706d3023 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -639 \ No newline at end of file +640 \ No newline at end of file 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 index f0ac33758e2e3d0dc74e95355aa3e59782e47fa9..67c8f188c25546d5991bc79665bb0de164a87fc2 100644 --- 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 @@ -57,14 +57,14 @@ \n activate_kw = {}\n related_order = packing_list.getCausalityValue()\n -after_path_list = []\n +after_tag_list = []\n if related_order is not None:\n - after_path_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n - after_path_list.append(related_order.getPath() + \'_expand\')\n + after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n + after_tag_list.append(related_order.getPath() + \'_expand\')\n tag = packing_list.getPath()+\'_expand\'\n activate_kw = {\'tag\':tag,\'priority\':3}\n \n -packing_list.activate(after_path=after_path_list,\n +packing_list.activate(after_tag=after_tag_list,\n tag=tag,\n priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\',\n activate_kw=activate_kw)\n @@ -73,7 +73,7 @@ packing_list.activate(after_path=after_path_list,\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 -packing_list.activate(after_path=after_path_list,\n +packing_list.activate(after_tag=after_tag_list,\n tag=tag,\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n \n @@ -124,7 +124,7 @@ packing_list.activate(\n <string>activate_kw</string> <string>_getattr_</string> <string>related_order</string> - <string>after_path_list</string> + <string>after_tag_list</string> <string>None</string> <string>tag</string> </tuple> diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index a557316495daf87a9067fa9ba15f15b66963a12a..0905ea78aba8dbc76598cb3610907683a1cb4525 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -641 \ No newline at end of file +642 \ No newline at end of file