diff --git a/erpnext/controllers/website_list_for_contact.py b/erpnext/controllers/website_list_for_contact.py index 51fb0a58892..c92538332ae 100644 --- a/erpnext/controllers/website_list_for_contact.py +++ b/erpnext/controllers/website_list_for_contact.py @@ -35,6 +35,8 @@ def get_transaction_list(doctype, txt=None, filters=None, limit_start=0, limit_p key, parties = "customer", customers elif suppliers: key, parties = "supplier", suppliers + else: + key, parties = "customer", [] filters.append((doctype, key, "in", parties))