Removed workflow_trigger_write on wrong model. Fix for issue807.

This commit is contained in:
Bertrand Chenal committed 2009-02-23 21:31:14 +01:00
1 parent 0b6c5f4114
commit 8c9bb885fc
1 file changed
-3
-3
View File
@@ -942,9 +942,6 @@ def post_import(cursor, pool, module, to_delete):
cursor.execute("DELETE FROM wkf_transition " \
"WHERE act_to = %s", (db_id,))
model_obj = pool.get(model)
model_obj.workflow_trigger_write(cursor, user, db_id)
logging.getLogger("convert").info(
'Deleting %s@%s' % (db_id, model))