brotherton-erpnext/patches/june_2013/p02_update_project_completed.py

6 lines
222 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"""):
webnotes.bean("Project", p).controller.update_percent_complete()