brotherton-erpnext/patches/june_2013/p02_update_project_completed.py
2013-07-16 15:18:18 +05:30

6 lines
229 B
Python

import webnotes
def execute():
webnotes.reload_doc("projects", "doctype", "project")
for p in webnotes.conn.sql_list("""select name from tabProject"""):
webnotes.bean("Project", p).make_controller().update_percent_complete()