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 index 5f1043f9cefdc37ccc45036c1989154084e4e203..f731f693d7026002758fc28089339d7e4c210c60 100644 --- 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 @@ -71,7 +71,11 @@ <value> <string>order = state_change[\'object\']\n \n tag = order.getPath() + \'_firstUpdateAppliedRule\'\n -order.activate(tag=tag).updateAppliedRule(tag=tag,rule_id = \'default_production_order_rule\',priority=3)\n +activate_kw = {\'tag\': tag,\n + \'priority\': 3}\n +order.activate(**activate_kw).updateAppliedRule(\n + rule_id = \'default_production_order_rule\',\n + activate_kw=activate_kw)\n </string> </value> </item> <item> @@ -119,6 +123,8 @@ order.activate(tag=tag).updateAppliedRule(tag=tag,rule_id = \'default_production <string>order</string> <string>_getattr_</string> <string>tag</string> + <string>activate_kw</string> + <string>_apply_</string> </tuple> </value> </item> diff --git a/bt5/erp5_mrp/bt/revision b/bt5/erp5_mrp/bt/revision index d2e1cefe89e17269cf846b1b537654757ac8b735..7d37386284a97324cbac474cb5ea5360d361d104 100644 --- a/bt5/erp5_mrp/bt/revision +++ b/bt5/erp5_mrp/bt/revision @@ -1 +1 @@ -44 \ No newline at end of file +45 \ No newline at end of file