mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[fix] [minor] patches
This commit is contained in:
@@ -12,7 +12,10 @@ def execute():
|
|||||||
time_zone = webnotes.conn.sql("""select value from `tabSingles` where
|
time_zone = webnotes.conn.sql("""select value from `tabSingles` where
|
||||||
field='timezone' and doctype='Control Panel'""")
|
field='timezone' and doctype='Control Panel'""")
|
||||||
|
|
||||||
|
try:
|
||||||
gb_bean = webnotes.bean("Global Defaults")
|
gb_bean = webnotes.bean("Global Defaults")
|
||||||
gb_bean.doc.country = country and country[0][0] or None
|
gb_bean.doc.country = country and country[0][0] or None
|
||||||
gb_bean.doc.time_zone = time_zone and time_zone[0][0] or None
|
gb_bean.doc.time_zone = time_zone and time_zone[0][0] or None
|
||||||
gb_bean.save()
|
gb_bean.save()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user