[FIX] clear the cache when deleting an entry in ir_model_data

bzr revid: christophe@tinyerp.com-20090511132112-b8mr6dbfdui7wtt1
This commit is contained in:
Christophe Simonis 2009-05-11 15:21:12 +02:00
parent 28a970761a
commit a9233e3a74
1 changed files with 1 additions and 0 deletions

View File

@ -450,6 +450,7 @@ class ir_model_data(osv.osv):
cr.execute('select id from '+model_obj._table+' where id=%s', (res_id2,))
result3 = cr.fetchone()
if not result3:
self._get_id.clear_cache(cr.dbname, uid, module, xml_id)
cr.execute('delete from ir_model_data where id=%s', (action_id2,))
res_id = False
else: