[FIX] clear the cache when deleting an entry in ir_model_data
bzr revid: christophe@tinyerp.com-20090511132112-b8mr6dbfdui7wtt1
This commit is contained in:
parent
28a970761a
commit
a9233e3a74
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue