brotherton-erpnext/patches/june_2013/p02_update_project_completed.py

6 lines
221 B
Python
Raw Normal View History

2013-06-07 09:22:53 +00:00
import webnotes
def execute():
2013-06-07 09:39:45 +00:00
webnotes.reload_doc("project", "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()