From f71011aff094edab4426623d423cb501e4a4a19e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 21 Aug 2014 11:34:31 +0530 Subject: [PATCH] Project query fixed --- erpnext/controllers/queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index 4a30eed652..d555532419 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -200,7 +200,7 @@ def bom(doctype, txt, searchfield, start, page_len, filters): def get_project_name(doctype, txt, searchfield, start, page_len, filters): cond = '' - if filters['customer']: + if filters.get('customer'): cond = '(`tabProject`.customer = "' + filters['customer'] + '" or ifnull(`tabProject`.customer,"")="") and' return frappe.db.sql("""select `tabProject`.name from `tabProject`