From 168bc328af2fadbe6fcf8998ccbcc8cae710b25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 18 Feb 2009 11:47:50 +0100 Subject: [PATCH] Use the right id when creating trigger for issue788 --- trytond/workflow/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/workflow/workflow.py b/trytond/workflow/workflow.py index 40a993dbc1..3e6d00ff39 100644 --- a/trytond/workflow/workflow.py +++ b/trytond/workflow/workflow.py @@ -290,7 +290,7 @@ class WorkflowWorkitem(OSV): for res_id in ids: trigger_obj.create(cursor, 0, { 'model': transition.trigger_model, - 'res_id': workitem.instance.res_id, + 'res_id': res_id, 'instance': workitem.instance.id, 'workitem': workitem.id, }, context=context)