commit | 20008946a30e6538ee352aac61883285a577a572 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> | Thu Feb 14 17:37:41 2019 +0530 |
committer | GitHub <noreply@github.com> | Thu Feb 14 17:37:41 2019 +0530 |
tree | 6b99d275a892e620f03f4d6b293ee6af0be972b7 | |
parent | 34f4f24e214f99c9c075eb72eb26cfac573a7bf6 [diff] | |
parent | 4902f7b2a05d4a54a6089f40f8b31af5e4877795 [diff] |
Merge branch 'hotfix' into address-rep-fix
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