[FIX]: crm: When a lead linked to an existing partner is converted to an opportunity, the salesman of the opportunity must be the assigned salesman of the partner by default
bzr revid: rpa@tinyerp.com-20100719113305-04nntaswzogagf55
This commit is contained in:
@@ -79,6 +79,7 @@ class crm_lead2opportunity(osv.osv_memory):
|
||||
'probability': this.probability,
|
||||
'name': this.name,
|
||||
'partner_id': this.partner_id.id,
|
||||
'user_id': this.partner_id.user_id.id or lead.user_id.id,
|
||||
'type': 'opportunity'
|
||||
}
|
||||
lead_obj.write(cr, uid, lead.id, vals, context=context)
|
||||
|
||||
Reference in New Issue
Block a user