[FIX]: Fix task name

bzr revid: atp@tinyerp.com-20120926172429-cvk8ueo1rg52a4ir
This commit is contained in:
Atul Patel (OpenERP) 2012-09-26 22:54:29 +05:30
parent f7c2177157
commit feec62da0b
1 changed files with 3 additions and 3 deletions

View File

@ -1114,9 +1114,9 @@ class task(base_stage, osv.osv):
def write(self, cr, uid, ids, vals, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
for task in self.browse(cr, uid, ids, context=context):
if task.project_id:
vals.update({'message_follower_ids': [(4, follower.id) for follower in task.project_id.message_follower_ids]})
for t in self.browse(cr, uid, ids, context=context):
if t.project_id:
vals.update({'message_follower_ids': [(4, follower.id) for follower in t.project_id.message_follower_ids]})
if vals and not 'kanban_state' in vals and 'stage_id' in vals:
new_stage = vals.get('stage_id')