[FIX] ir.model.data: correct cache clearing

bzr revid: chs@openerp.com-20140129172949-tmwd17c2ofsqj94t
This commit is contained in:
Christophe Simonis 2014-01-29 18:29:49 +01:00
parent 04a52645c0
commit 958ecb84b0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
# Copyright (C) 2004-2014 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -971,7 +971,7 @@ class ir_model_data(osv.osv):
if mode == 'update' and noupdate_imd:
return res_id2
if not real_id2:
self.clear_caches(self)
self.clear_caches()
cr.execute('delete from ir_model_data where id=%s', (imd_id2,))
res_id = False
else: