[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:
rpa (Open ERP)
2010-07-19 17:03:05 +05:30
parent c63600f4b0
commit 390cfdbc40
@@ -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)