summaryrefslogtreecommitdiff
path: root/addons/note/note.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-12-14 11:54:34 +0100
committerChristophe Matthieu <chm@openerp.com>2012-12-14 11:54:34 +0100
commit0475ce0f565f38b40f6be750b7ea02382f7ba70f (patch)
tree52b6fbf5a2c6a4b8251cea8067ea5493b65166e0 /addons/note/note.py
parentcc8025387b62318af86c94d7b884e4e899131bcb (diff)
[FIX]note: remove double set stage (sequence=1) for set_stage_per_user. Add set on list.
bzr revid: chm@openerp.com-20121214105434-xctytfnl929nt8sb
Diffstat (limited to 'addons/note/note.py')
-rw-r--r--addons/note/note.py2
1 files changed, 1 insertions, 1 deletions
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)