added company in leave application and global holiday block list

This commit is contained in:
Rushabh Mehta
2013-02-07 09:09:14 +05:30
parent 958f08e77d
commit 981577050c
7 changed files with 88 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
def execute():
import webnotes
webnotes.conn.sql("""update `tabLeave Application`, `tabEmployee` set
`tabLeave Application`.company = `tabEmployee`.company where
`tabLeave Application`.employee = `tabEmployee`.name""")
company = webnotes.conn.get_default("company")
webnotes.conn.sql("""update `tabLeave Application`
set company = %s where ifnull(company,'')=''""", company)

View File

@@ -166,4 +166,5 @@ patch_list = [
"patches.february_2013.remove_sales_order_pending_items",
"patches.february_2013.account_negative_balance",
"patches.february_2013.remove_account_utils_folder",
"patches.february_2013.update_company_in_leave_application"
]