mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
feat: Added filter to query
This commit is contained in:
@@ -203,7 +203,7 @@ def set_multiple_status(names, status):
|
||||
task.save()
|
||||
|
||||
def set_tasks_as_overdue():
|
||||
tasks = frappe.get_all("Task")
|
||||
tasks = frappe.get_all("Task", filters={'status':['not in',['Cancelled', 'Completed']]})
|
||||
for task in tasks:
|
||||
frappe.get_doc("Task", task.name).update_status()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user