mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 11:08:32 +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
|
||||
field='timezone' and doctype='Control Panel'""")
|
||||
|
||||
gb_bean = webnotes.bean("Global Defaults")
|
||||
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.save()
|
||||
try:
|
||||
gb_bean = webnotes.bean("Global Defaults")
|
||||
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.save()
|
||||
except:
|
||||
pass
|
||||
Reference in New Issue
Block a user