[FIX] crm: do not consider leads without emails as duplicated

This commit is contained in:
Christophe Simonis
2018-08-14 12:08:04 +02:00
parent 549b7175ec
commit 2917b38f28
+2
View File
@@ -607,6 +607,8 @@ class crm_lead(format_address, osv.osv):
"""
Search for opportunities that have the same partner and that arent done or cancelled
"""
if not email:
return []
partner_match_domain = []
for email in set(email_split(email) + [email]):
partner_match_domain.append(('email_from', '=ilike', email))