Project query fixed
This commit is contained in:
parent
df5ab4e228
commit
f71011aff0
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user