diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-09-26 22:54:29 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-09-26 22:54:29 +0530 |
| commit | feec62da0b550c2f3c8a181cc5166c4c036fc2c6 (patch) | |
| tree | 3151ea53a44c75cf28e07f9cde4c052140b6ab06 | |
| parent | f7c2177157bd29e4d2ab9289f311104040701d04 (diff) | |
[FIX]: Fix task name
bzr revid: atp@tinyerp.com-20120926172429-cvk8ueo1rg52a4ir
| -rw-r--r-- | addons/project/project.py | 6 |
1 files changed, 3 insertions, 3 deletions
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') |
