mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +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)
|
||||
Reference in New Issue
Block a user