[FIX] ir_translation _get_ids clear_cache is not multi
authorAntony Lesuisse <al@openerp.com>
Fri, 9 Sep 2011 10:07:09 +0000 (12:07 +0200)
committerAntony Lesuisse <al@openerp.com>
Fri, 9 Sep 2011 10:07:09 +0000 (12:07 +0200)
lp bug: https://launchpad.net/bugs/838864 fixed

bzr revid: al@openerp.com-20110909100709-kdqf4aibdr0flr4a

openerp/addons/base/ir/ir_translation.py

index 813ab51..9677288 100644 (file)
@@ -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):