[FIX] note: remove double set stage (sequence=1) for set_stage_per_user. Add set on list.

bzr revid: chm@openerp.com-20121214145659-flkusegza64o9n04
This commit is contained in:
Christophe Matthieu 2012-12-14 15:56:59 +01:00
commit d9e7ed7472
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class note_note(osv.osv):
note = self.browse(cr, uid, id, context=context)
if not value: return False
stage_ids = [value] + [stage.id for stage in note.stage_ids if stage.user_id.id != uid ]
return self.write(cr, uid, [id], {'stage_ids': [(6, 0, stage_ids)]}, context=context)
return self.write(cr, uid, [id], {'stage_ids': [(6, 0, set(stage_ids))]}, context=context)
def _get_stage_per_user(self, cr, uid, ids, name, args, context=None):
result = dict.fromkeys(ids, False)