From 390cfdbc4023f4570f3a307f805a11ec6d67250b Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Mon, 19 Jul 2010 17:03:05 +0530 Subject: [PATCH] [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 --- addons/crm/wizard/crm_lead_to_opportunity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/crm/wizard/crm_lead_to_opportunity.py b/addons/crm/wizard/crm_lead_to_opportunity.py index acb2597..b8bc317 100644 --- a/addons/crm/wizard/crm_lead_to_opportunity.py +++ b/addons/crm/wizard/crm_lead_to_opportunity.py @@ -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) -- 1.7.10.4