[MERGE] [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
bzr revid: mat@openerp.com-20131125162013-z6dhe8eigq7pig0x
This commit is contained in:
commit
d547acbc4b
|
@ -1112,7 +1112,8 @@ 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