brotherton-erpnext/patches/june_2013/p02_update_project_completed.py

9 lines
343 B
Python
Raw Normal View History

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
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()