[Fix] Customer is manadatory even if customer has selected in the Issue

This commit is contained in:
Rohit Waghchaure 2017-11-01 18:56:43 +05:30
parent dd0bdc7fa6
commit 816ce33daf

View File

@ -32,7 +32,7 @@ class Issue(Document):
if email_id:
if not self.lead:
self.lead = frappe.db.get_value("Lead", {"email_id": email_id})
if not self.contact:
if not self.contact and not self.customer:
self.contact = frappe.db.get_value("Contact", {"email_id": email_id})
if self.contact: