2015-02-24 06:54:53 +00:00
|
|
|
from __future__ import unicode_literals
|
2014-08-04 11:07:23 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
for project in frappe.db.sql_list("select name from tabProject"):
|
2014-08-08 09:19:53 +00:00
|
|
|
frappe.reload_doc("projects", "doctype", "project")
|
2014-08-04 11:07:23 +00:00
|
|
|
p = frappe.get_doc("Project", project)
|
|
|
|
p.update_milestones_completed()
|
|
|
|
p.db_set("percent_milestones_completed", p.percent_milestones_completed)
|