[FIX] Fixed wrong var name...

bzr revid: tde@openerp.com-20120815220354-9c4ohv57g1vn65xj
This commit is contained in:
Thibault Delavallée 2012-08-16 00:03:54 +02:00
parent 5a89f31bdf
commit 0c706a768d
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ class mail_thread(osv.Model):
# automatically subscribe the writer of the message
if vals.get('user_id'):
record = self.browse(cr, uid, thread_id, context=context)
follower_ids = [follower.id for follower in record.follower_ids]
follower_ids = [follower.id for follower in record.message_follower_ids]
if vals.get('user_id') not in follower_ids:
self.message_subscribe(cr, uid, [thread_id], [vals.get('user_id')], context=context)