10 lines
341 B
Python
10 lines
341 B
Python
from __future__ import unicode_literals
|
|
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)
|