fix: check open status projects for project status update

This commit is contained in:
Rohit Waghchaure 2019-02-01 11:37:22 +05:30
parent 7a2163ca39
commit a4645b6d17

View File

@ -459,7 +459,7 @@ def get_projects_for_collect_progress(frequency, fields):
fields.extend(["name"]) fields.extend(["name"])
return frappe.get_all("Project", fields = fields, 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): def send_project_update_email_to_users(project):
doc = frappe.get_doc('Project', project) doc = frappe.get_doc('Project', project)