Merge branch 'hotfix'

This commit is contained in:
Saurabh 2017-11-17 14:55:23 +05:30
commit a5b53e9480
2 changed files with 14 additions and 9 deletions

View File

@ -4,7 +4,7 @@ import inspect
import frappe
from erpnext.hooks import regional_overrides
__version__ = '9.2.14'
__version__ = '9.2.15'
def get_default_company(user=None):
'''Get default company for user'''

View File

@ -4,7 +4,9 @@ from frappe import _
def execute():
language = frappe.get_single("System Settings").language
if language.startswith('en'): return
if language and language.startswith('en'): return
frappe.local.lang = language
all_domains = frappe.get_hooks("domains")
@ -16,6 +18,7 @@ def execute():
domain_settings = frappe.get_single("Domain Settings")
active_domains = [d.domain for d in domain_settings.active_domains]
try:
for domain in active_domains:
domain = frappe.get_doc("Domain", domain)
domain.setup_domain()
@ -24,3 +27,5 @@ def execute():
domain.setup_sidebar_items()
domain.setup_desktop_icons()
domain.set_default_portal_role()
except frappe.LinkValidationError:
pass