[FIX] ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
Just like for the uninstallation process, records should be deleted with last created first, as an attempt to reverse the operations in the right order (to avoid errors due to dependencies between records). bzr revid: odo@openerp.com-20131118125640-kdo3t34uszqggu13
This commit is contained in:
parent
05378ede0b
commit
4921167d74
|
@ -1126,7 +1126,7 @@ class ir_model_data(osv.osv):
|
|||
return True
|
||||
to_unlink = []
|
||||
cr.execute("""SELECT id,name,model,res_id,module FROM ir_model_data
|
||||
WHERE module IN %s AND res_id IS NOT NULL AND noupdate=%s""",
|
||||
WHERE module IN %s AND res_id IS NOT NULL AND noupdate=%s ORDER BY id DESC""",
|
||||
(tuple(modules), False))
|
||||
for (id, name, model, res_id, module) in cr.fetchall():
|
||||
if (module,name) not in self.loads:
|
||||
|
|
Loading…
Reference in New Issue