mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
9 lines
387 B
Python
9 lines
387 B
Python
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) |