Fix for new order
This commit is contained in:
1 parent
bf0742fd99
commit
0b239edb84
1 file changed
+1
-1
@@ -193,7 +193,7 @@ class InstanceGraph(Report):
|
||||
instance_id = instance_obj.search(cursor, user, [
|
||||
('res_id', '=', datas['id']),
|
||||
('workflow', '=', workflow.id),
|
||||
], order='id DESC', limit=1, context=context)
|
||||
], order=[('id', 'DESC')], limit=1, context=context)
|
||||
if not instance_id:
|
||||
raise ExceptOSV('UserError', 'No workflow instance defined!')
|
||||
instance_id = instance_id[0]
|
||||
|
||||
Reference in new issue
Block a user