[FIX] ir.translation: keywargs not supported when clearing caches

bzr revid: odo@openerp.com-20111129093800-4bsldbpjh1q4zix1
This commit is contained in:
Olivier Dony 2011-11-29 10:38:00 +01:00
parent 38e1a8a660
commit 52eb2fae1c
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class ir_translation(osv.osv):
if isinstance(ids, (int, long)):
ids = [ids]
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'], source=trans_obj['src'])
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'])
result = super(ir_translation, self).unlink(cursor, user, ids, context=context)
return result