From a4645b6d17e42283210555943049e315b8b49288 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 1 Feb 2019 11:37:22 +0530 Subject: [PATCH] fix: check open status projects for project status update --- erpnext/projects/doctype/project/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py index dcf485a803..3b42f6a69d 100644 --- a/erpnext/projects/doctype/project/project.py +++ b/erpnext/projects/doctype/project/project.py @@ -459,7 +459,7 @@ def get_projects_for_collect_progress(frequency, fields): fields.extend(["name"]) return frappe.get_all("Project", fields = fields, - filters = {'collect_progress': 1, 'frequency': frequency}) + filters = {'collect_progress': 1, 'frequency': frequency, 'status': 'Open'}) def send_project_update_email_to_users(project): doc = frappe.get_doc('Project', project)