Merge pull request #16547 from rohitwaghchaure/project_status_email_fix

fix: check open status projects for project status update
This commit is contained in:
rohitwaghchaure 2019-02-02 13:06:29 +05:30 committed by GitHub
commit 752f2f1805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)