Guidelines. Again.
This commit is contained in:
1 parent
210b3151be
commit
309d20ec5d
1 file changed
+1
-1
+1
-1
@@ -1265,7 +1265,7 @@ class ORM(object):
|
||||
"SELECT id FROM wkf_instance "\
|
||||
"WHERE res_id IN (" + ",".join(["%s" for i in ids]) + ") "\
|
||||
"AND res_type = %s AND state != 'complete'",
|
||||
(ids+[self._name]))
|
||||
ids + [self._name])
|
||||
if cursor.rowcount != 0:
|
||||
raise ExceptORM(
|
||||
'UserError','You cannot delete a record with a running workflow.')
|
||||
|
||||
Reference in new issue
Block a user