mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
load some conf data in boot
This commit is contained in:
@@ -85,8 +85,8 @@ def boot_session(bootinfo):
|
|||||||
|
|
||||||
# load subscription info
|
# load subscription info
|
||||||
import conf
|
import conf
|
||||||
if hasattr(conf, 'max_users'): bootinfo['max_users'] = conf.max_users
|
for key in ['max_users', 'expires_on', 'max_space', 'status']:
|
||||||
if hasattr(conf, 'expires_on'): bootinfo['expires_on'] = conf.expires_on
|
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
|
||||||
|
|
||||||
company = webnotes.conn.sql("select name, default_currency from `tabCompany`", as_dict=1)
|
company = webnotes.conn.sql("select name, default_currency from `tabCompany`", as_dict=1)
|
||||||
company_dict = {}
|
company_dict = {}
|
||||||
@@ -95,8 +95,6 @@ def boot_session(bootinfo):
|
|||||||
|
|
||||||
bootinfo['company'] = company_dict
|
bootinfo['company'] = company_dict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_letter_heads():
|
def get_letter_heads():
|
||||||
"""load letter heads with startup"""
|
"""load letter heads with startup"""
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|||||||
Reference in New Issue
Block a user