bzr revid: fp@tinyerp.com-20101016141653-2dg9u9edvt10laek
This commit is contained in:
Fabien Pinckaers 2010-10-16 16:16:53 +02:00
parent c5b119e278
commit 34976a6fcb
1 changed files with 3 additions and 2 deletions

View File

@ -61,8 +61,9 @@ class res_log(osv.osv):
result = []
res_dict = {}
for r in res:
if r['res_model'] not in res_dict:
res_dict[r['res_model']] = True
t = (r['res_model'], r['res_id'])
if t not in res_dict:
res_dict[t] = True
result.insert(0,r)
self.write(cr, uid, unread_log_ids, {'read': True}, context=context)
return result