commit | 34f4f24e214f99c9c075eb72eb26cfac573a7bf6 | [log] [tgz] |
---|---|---|
author | deepeshgarg007 <deepeshgarg6@gmail.com> | Thu Feb 14 17:26:49 2019 +0530 |
committer | deepeshgarg007 <deepeshgarg6@gmail.com> | Thu Feb 14 17:26:49 2019 +0530 |
tree | ffdb5ed9a786ada786d10ccb3207ef0358e2f78b | |
parent | 4d1bc0ca853030bdbcaec5a6ca4fcd4063fe399e [diff] |
fix: Address and contact report
diff --git a/erpnext/selling/report/address_and_contacts/address_and_contacts.py b/erpnext/selling/report/address_and_contacts/address_and_contacts.py index a9e4303..eb242d0 100644 --- a/erpnext/selling/report/address_and_contacts/address_and_contacts.py +++ b/erpnext/selling/report/address_and_contacts/address_and_contacts.py
@@ -102,7 +102,8 @@ records = frappe.get_list(doctype, filters=filters, fields=fields, as_list=True) for d in records: details = party_details.get(d[0]) - details.setdefault(frappe.scrub(doctype), []).append(d[1:]) + if details: + details.setdefault(frappe.scrub(doctype), []).append(d[1:]) return party_details