brotherton-erpnext/patches/june_2013/p02_update_project_completed.py
2013-11-20 13:00:28 +05:30

9 lines
360 B
Python

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