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 14:52:53 +05:30
import webnotes
def execute():
webnotes.reload_doc("projects", "doctype", "project")
2013-06-07 14:52:53 +05:30
for p in webnotes.conn.sql_list("""select name from tabProject"""):
2013-07-16 15:18:18 +05:30
webnotes.bean("Project", p).make_controller().update_percent_complete()