mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
added company in leave application and global holiday block list
This commit is contained in:
@@ -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)
|
||||
@@ -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"
|
||||
]
|
||||
Reference in New Issue
Block a user