brotherton-erpnext/patches/june_2013/p02_update_project_completed.py
2013-06-07 15:55:31 +05:30

6 lines
222 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).controller.update_percent_complete()