mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
added new calendar and renamed holiday block list
This commit is contained in:
14
patches/february_2013/p01_event.py
Normal file
14
patches/february_2013/p01_event.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("core", "doctype", "event")
|
||||
|
||||
webnotes.conn.sql("""update tabEvent set subject=description""")
|
||||
|
||||
webnotes.conn.sql("""update tabEvent set description = concat(description, "\n", notes)
|
||||
where ifnull(notes,"") != "" """)
|
||||
|
||||
webnotes.conn.sql("""update tabEvent set starts_on = timestamp(event_date, event_hour)""")
|
||||
|
||||
webnotes.conn.sql("""update tabEvent set ends_on = timestampadd(hour, 1, starts_on)""")
|
||||
|
||||
Reference in New Issue
Block a user