fixe in query.py
diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py
index 4547276..5cc7f64 100644
--- a/erpnext/controllers/queries.py
+++ b/erpnext/controllers/queries.py
@@ -20,7 +20,7 @@
 		query = DatabaseQuery(doctype)
 		query.filters = flt
 		query.conditions = conditions
-		query.build_filter_conditions()
+		query.build_filter_conditions(flt, conditions)
 
 		cond = ' and ' + ' and '.join(query.conditions)
 	else: