brotherton-erpnext/patches/june_2013/p02_update_project_completed.py

6 lines
229 B
Python
Raw Normal View History

2013-06-07 09:22:53 +00:00
import webnotes
def execute():
webnotes.reload_doc("projects", "doctype", "project")
2013-06-07 09:22:53 +00:00
for p in webnotes.conn.sql_list("""select name from tabProject"""):
2013-07-16 09:48:18 +00:00
webnotes.bean("Project", p).make_controller().update_percent_complete()