Merge pull request #11417 from rohitwaghchaure/issue_not_save_v9

[Fix] Customer is manadatory even if customer has selected in the Issue
This commit is contained in:
Saurabh 2017-11-02 12:07:32 +05:30 committed by GitHub
commit 00f6c2d61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: