mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[hot] fix in issue
This commit is contained in:
@@ -31,9 +31,13 @@ class Issue(Document):
|
|||||||
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:
|
||||||
self.contact, self.customer = frappe.db.get_value("Contact",
|
values = frappe.db.get_value("Contact",
|
||||||
{"email_id": email_id}, ("name", "customer"))
|
{"email_id": email_id}, ("name", "customer"))
|
||||||
|
|
||||||
|
if values:
|
||||||
|
self.contact, self.customer = values
|
||||||
|
|
||||||
|
|
||||||
if not self.company:
|
if not self.company:
|
||||||
self.company = frappe.db.get_value("Lead", self.lead, "company") or \
|
self.company = frappe.db.get_value("Lead", self.lead, "company") or \
|
||||||
frappe.db.get_default("company")
|
frappe.db.get_default("company")
|
||||||
|
|||||||
Reference in New Issue
Block a user