From 8c9bb885fc90728ccb4b1d8fd39c97442127873f Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 23 Feb 2009 21:31:14 +0100 Subject: [PATCH] Removed workflow_trigger_write on wrong model. Fix for issue807. --- trytond/tools/convert.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/trytond/tools/convert.py b/trytond/tools/convert.py index 76a07b30dd..e06ecf07fe 100644 --- a/trytond/tools/convert.py +++ b/trytond/tools/convert.py @@ -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))