[patch] update lead, contact in support ticket
This commit is contained in:
parent
fd332e47a2
commit
4b86a41bd2
1 changed files with 2 additions and 6 deletions
|
|
@ -115,13 +115,9 @@ def set_lead_and_contact(d):
|
|||
"name") or None
|
||||
|
||||
if not d.company:
|
||||
if d.lead:
|
||||
company = webnotes.conn.get_value("Lead", d.lead, "company")
|
||||
elif d.contact:
|
||||
company = webnotes.conn.get_value("Contact", d.contact, "company")
|
||||
d.company = webnotes.conn.get_value("Lead", d.lead, "company") or \
|
||||
webnotes.conn.get_default("company")
|
||||
|
||||
d.company = company or webnotes.conn.get_default("company")
|
||||
|
||||
class DocType():
|
||||
def __init__(self, doc, doclist=[]):
|
||||
self.doc = doc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue