[FIX] ir_translation _get_ids clear_cache is not multi
lp bug: https://launchpad.net/bugs/838864 fixed bzr revid: al@openerp.com-20110909100709-kdqf4aibdr0flr4a
This commit is contained in:
parent
061df0800d
commit
78626b885c
|
@ -189,7 +189,7 @@ class ir_translation(osv.osv):
|
|||
result = super(ir_translation, self).write(cursor, user, ids, vals, context=context)
|
||||
for trans_obj in self.read(cursor, user, ids, ['name','type','res_id','src','lang'], context=context):
|
||||
self._get_source.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], trans_obj['src'])
|
||||
self._get_ids.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], [trans_obj['res_id']])
|
||||
self._get_ids.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], trans_obj['res_id'])
|
||||
return result
|
||||
|
||||
def unlink(self, cursor, user, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue