Use the right id when creating trigger for issue788

This commit is contained in:
Cédric Krier committed 2009-02-18 11:47:50 +01:00
1 parent 1ba1ee8730
commit 168bc328af
1 file changed
+1 -1
+1 -1
View File
@@ -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)