Update update_project_milestones.py

This commit is contained in:
Pratik Vyas 2014-08-08 14:49:53 +05:30
parent 7c3fad63b1
commit 3de7757ba4

View File

@ -2,6 +2,7 @@ import frappe
def execute():
for project in frappe.db.sql_list("select name from tabProject"):
frappe.reload_doc("projects", "doctype", "project")
p = frappe.get_doc("Project", project)
p.update_milestones_completed()
p.db_set("percent_milestones_completed", p.percent_milestones_completed)