[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:
commit
d9e7ed7472
|
@ -94,7 +94,7 @@ class note_note(osv.osv):
|
||||||
note = self.browse(cr, uid, id, context=context)
|
note = self.browse(cr, uid, id, context=context)
|
||||||
if not value: return False
|
if not value: return False
|
||||||
stage_ids = [value] + [stage.id for stage in note.stage_ids if stage.user_id.id != uid ]
|
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):
|
def _get_stage_per_user(self, cr, uid, ids, name, args, context=None):
|
||||||
result = dict.fromkeys(ids, False)
|
result = dict.fromkeys(ids, False)
|
||||||
|
|
Loading…
Reference in New Issue