[IMP]all followers of the task project are automatically followers of the task

bzr revid: sgo@tinyerp.com-20120813110746-wqivckynrcqnf7y6
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-08-13 16:37:46 +05:30
parent 03e6f93fcf
commit 2b331ed5e3
+3
View File
@@ -1209,6 +1209,9 @@ class task(base_stage, osv.osv):
user_ids.append(obj.user_id.id)
if obj.manager_id and not obj.manager_id.id in user_ids:
user_ids.append(obj.manager_id.id)
if obj.project_id.followers:
for follower in obj.project_id.followers:
user_ids.append(follower.id)
return user_ids
def stage_set_send_note(self, cr, uid, ids, stage_id, context=None):