Project query fixed

This commit is contained in:
Nabin Hait 2014-08-21 11:34:31 +05:30
parent df5ab4e228
commit f71011aff0

View File

@ -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`