I Created new custom field contact_html in lead Doctype, and created new lead and in address & contact added new address and new contact
In Contact -new contact created, but in Lead it shows “No contact added yet”
Please help
Venkatesh
Mittal clothing, Bangalore
Hi @venkatesh
It’s because of the condition doc.doctype !=‘Lead’ in adddress_and_contact.py file
]
address_list = frappe.get_list("Address", filters=filters, fields=["*"], order_by="creation asc")
address_list = [a.update({"display": get_address_display(a)}) for a in address_list]
address_list = sorted(
address_list,
key=functools.cmp_to_key(
lambda a, b: (int(a.is_primary_address - b.is_primary_address))
or (1 if a.modified - b.modified else 0)
),
reverse=True,
)
doc.set_onload("addr_list", address_list)
contact_list = []
filters = [
["Dynamic Link", "link_doctype", "=", doc.doctype],
["Dynamic Link", "link_name", "=", doc.name],
["Dynamic Link", "parenttype", "=", "Contact"],