[IMP] crm : when lead has already a customer assigned to it and we click on convert to opp, it should not propose to create new customer in that wizard, it should give option 'Link to an Existing Customer' with the customer assigned to that lead.
bzr revid: mdi@tinyerp.com-20120918071815-n1x7v0wvaarpyc1r
This commit is contained in:
@@ -60,7 +60,7 @@ class crm_lead2partner(osv.osv_memory):
|
||||
partner_ids = partner.search(cr, uid, [('email', '=', this.email_from)], context=context)
|
||||
if partner_ids:
|
||||
partner_id = partner_ids[0]
|
||||
if not this.partner_id and this.partner_name:
|
||||
if this.partner_id and this.partner_name:
|
||||
partner_ids = partner.search(cr, uid, [('name', '=', this.partner_name)], context=context)
|
||||
if partner_ids:
|
||||
partner_id = partner_ids[0]
|
||||
|
||||
Reference in New Issue
Block a user