From 816ce33daf4e5a27ec548d04ee11499980062f1b Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 1 Nov 2017 18:56:43 +0530 Subject: [PATCH] [Fix] Customer is manadatory even if customer has selected in the Issue --- erpnext/support/doctype/issue/issue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/issue/issue.py b/erpnext/support/doctype/issue/issue.py index ab73b3427d..6a18f1153b 100644 --- a/erpnext/support/doctype/issue/issue.py +++ b/erpnext/support/doctype/issue/issue.py @@ -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: