From 00f7400e8c619f995c67febebf596cb1e37a7181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 23 Feb 2013 14:32:50 +0100 Subject: [PATCH] At least make record inactive if delete fails review665003 --- trytond/convert.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trytond/convert.py b/trytond/convert.py index 1984bd6e5e..3837819d41 100644 --- a/trytond/convert.py +++ b/trytond/convert.py @@ -821,6 +821,10 @@ def post_import(pool, module, to_delete): 'and restart --update=module\n' 'Exception: %s' % (db_id, model, tb_s)) + if 'active' in Model._fields: + Model.write([Model(db_id)], { + 'active': False, + }) # Clean model_data: if mdata_delete: