implemented get_site_info for erpnext and patch to move setup complete to system settings

This commit is contained in:
Anand Doshi
2016-06-25 19:51:48 +05:30
parent 5cba40b74f
commit f576f3b17b
4 changed files with 36 additions and 0 deletions

View 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