At least make record inactive if delete fails
review665003
This commit is contained in:
1 parent
098f815d69
commit
00f7400e8c
1 file changed
+4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user