implemented get_site_info for erpnext and patch to move setup complete to system settings
This commit is contained in:
16
erpnext/patches/v7_0/system_settings_setup_complete.py
Normal file
16
erpnext/patches/v7_0/system_settings_setup_complete.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype('System Settings')
|
||||
companies = frappe.db.sql("""select name, country
|
||||
from tabCompany order by creation asc""", as_dict=True)
|
||||
if companies:
|
||||
frappe.db.set_value('System Settings', 'System Settings', 'setup_complete', 1)
|
||||
|
||||
for company in companies:
|
||||
if company.country:
|
||||
frappe.db.set_value('System Settings', 'System Settings', 'country', company.country)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user