[MERGE]merge with parent branch

bzr revid: fka@tinyerp.com-20120816102743-hdb352jc1p5ylmce
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-08-16 15:57:43 +05:30
+4
View File
@@ -1120,6 +1120,10 @@ class task(base_stage, osv.osv):
def create(self, cr, uid, vals, context=None):
task_id = super(task, self).create(cr, uid, vals, context=context)
task_record = self.browse(cr, uid, task_id, context=context)
if task_record.project_id:
project_follower_ids = [follower.id for follower in task_record.project_id.message_follower_ids]
self.message_subscribe(cr, uid, [task_id], project_follower_ids, context=context)
self._store_history(cr, uid, [task_id], context=context)
self.create_send_note(cr, uid, [task_id], context=context)
return task_id