[FIX] crm.lead: salesman allocation should loop through given users
bzr revid: odo@openerp.com-20120425174805-4offt36tyazfhxkr
This commit is contained in:
parent
b606b1281c
commit
6d88302403
|
@ -669,9 +669,9 @@ class crm_lead(crm_case, osv.osv):
|
|||
value = {}
|
||||
if team_id:
|
||||
value['section_id'] = team_id
|
||||
if index < len(user_ids):
|
||||
if user_ids:
|
||||
value['user_id'] = user_ids[index]
|
||||
index += 1
|
||||
index = (index + 1) % len(user_ids)
|
||||
if value:
|
||||
self.write(cr, uid, [lead_id], value, context=context)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue