From 5a43907590f08dba3827e76ebdfb2e7a68097fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 7 May 2015 14:21:26 +0200 Subject: [PATCH] [FIX] crm: multi method still receiving id instead of ids. --- addons/crm/crm_lead.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 54a4574d8d4..67331b71ab7 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -1090,9 +1090,9 @@ class crm_lead(format_address, osv.osv): return {'value':{'country_id':country_id}} return {} - def message_partner_info_from_emails(self, cr, uid, id, emails, link_mail=False, context=None): - res = super(crm_lead, self).message_partner_info_from_emails(cr, uid, id, emails, link_mail=link_mail, context=context) - lead = self.browse(cr, uid, id, context=context) + def message_partner_info_from_emails(self, cr, uid, ids, emails, link_mail=False, context=None): + res = super(crm_lead, self).message_partner_info_from_emails(cr, uid, ids, emails, link_mail=link_mail, context=context) + lead = self.browse(cr, uid, ids[0], context=context) for partner_info in res: if not partner_info.get('partner_id') and (lead.partner_name or lead.contact_name): emails = email_re.findall(partner_info['full_name'] or '')