fix: Filter for projects in Sales Cycle
(cherry picked from commit d0e0b66b2f)
This commit is contained in:
@@ -338,7 +338,9 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
ifelse = CustomFunction("IF", ["condition", "then", "else"])
|
ifelse = CustomFunction("IF", ["condition", "then", "else"])
|
||||||
|
|
||||||
if filters and filters.get("customer"):
|
if filters and filters.get("customer"):
|
||||||
qb_filter_and_conditions.append(proj.customer == filters.get("customer"))
|
qb_filter_and_conditions.append(
|
||||||
|
(proj.customer == filters.get("customer")) | proj.customer.isnull() | proj.customer == ""
|
||||||
|
)
|
||||||
|
|
||||||
qb_filter_and_conditions.append(proj.status.notin(["Completed", "Cancelled"]))
|
qb_filter_and_conditions.append(proj.status.notin(["Completed", "Cancelled"]))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user