[FIX] FIxed call to message_get_automatic_followers.

bzr revid: tde@openerp.com-20120815210149-jujf2tv1hffm09g0
This commit is contained in:
Thibault Delavallée 2012-08-15 23:01:49 +02:00
parent b046ac3fae
commit e1870a434e
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class mail_thread(osv.Model):
- followers given by the monitored fields
"""
thread_id = super(mail_thread, self).create(cr, uid, vals, context=context)
followers_command = self.message_get_automatic_followers(cr, uid, [], vals, fetch_missing=True, context=context)
followers_command = self.message_get_automatic_followers(cr, uid, thread_id, vals, fetch_missing=False, context=context)
if followers_command:
self.write(cr, uid, [thread_id], {'message_follower_ids': followers_command}, context=context)
return thread_id