[FIX] project: removed old code that was messing with followers intorduced at revision 8435.

bzr revid: tde@openerp.com-20130626103756-kbbrp87gn2h5160h
This commit is contained in:
Thibault Delavallée
2013-06-26 12:37:56 +02:00
parent 4910b5e654
commit f95572d649
-5
View File
@@ -1126,11 +1126,6 @@ class task(base_stage, osv.osv):
def write(self, cr, uid, ids, vals, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
if vals.get('project_id'):
project_id = self.pool.get('project.project').browse(cr, uid, vals.get('project_id'), context=context)
if project_id:
vals.setdefault('message_follower_ids', [])
vals['message_follower_ids'] += [(6, 0,[follower.id]) for follower in project_id.message_follower_ids]
if vals and not 'kanban_state' in vals and 'stage_id' in vals:
new_stage = vals.get('stage_id')
vals_reset_kstate = dict(vals, kanban_state='normal')