[fix] [minor] update customer in issue fixes #3241
This commit is contained in:
parent
e2e1471f4d
commit
8360e2df71
@ -31,7 +31,8 @@ class Issue(Document):
|
||||
if not self.lead:
|
||||
self.lead = frappe.db.get_value("Lead", {"email_id": email_id})
|
||||
if not self.contact:
|
||||
self.contact = frappe.db.get_value("Contact", {"email_id": email_id})
|
||||
self.contact, self.customer = frappe.db.get_value("Contact",
|
||||
{"email_id": email_id}, ("name", "customer"))
|
||||
|
||||
if not self.company:
|
||||
self.company = frappe.db.get_value("Lead", self.lead, "company") or \
|
||||
|
Loading…
x
Reference in New Issue
Block a user