mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[Fix] Customer is manadatory even if customer has selected in the Issue
This commit is contained in:
@@ -32,7 +32,7 @@ class Issue(Document):
|
|||||||
if email_id:
|
if email_id:
|
||||||
if not self.lead:
|
if not self.lead:
|
||||||
self.lead = frappe.db.get_value("Lead", {"email_id": email_id})
|
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})
|
self.contact = frappe.db.get_value("Contact", {"email_id": email_id})
|
||||||
|
|
||||||
if self.contact:
|
if self.contact:
|
||||||
|
|||||||
Reference in New Issue
Block a user