From 0475ce0f565f38b40f6be750b7ea02382f7ba70f Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 14 Dec 2012 11:54:34 +0100 Subject: [PATCH] [FIX]note: remove double set stage (sequence=1) for set_stage_per_user. Add set on list. bzr revid: chm@openerp.com-20121214105434-xctytfnl929nt8sb --- addons/note/note.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/note/note.py b/addons/note/note.py index 9e1a9187095..b8f9b803a2d 100644 --- a/addons/note/note.py +++ b/addons/note/note.py @@ -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)