diff --git a/addons/project/project.py b/addons/project/project.py index 31b4f5ad4a4..4276f9d7885 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -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')