[fix] unset default customer group (#10689)

* [fix] unset default customer group

* added __init__.py file for patch v8.9 directory
This commit is contained in:
Rushabh Mehta
2017-09-14 15:03:45 +05:30
committed by Makarand Bauskar
parent a6d78ef842
commit bf8e331135
6 changed files with 19 additions and 4 deletions

View File

@@ -4,7 +4,6 @@
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import get_root_of
def boot_session(bootinfo):
"""boot session - send website info if guest"""
@@ -17,9 +16,9 @@ def boot_session(bootinfo):
load_country_and_currency(bootinfo)
bootinfo.sysdefaults.territory = frappe.db.get_single_value('Selling Settings',
'territory') or get_root_of('Territory')
'territory')
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value('Selling Settings',
'customer_group') or get_root_of('Customer Group')
'customer_group')
bootinfo.notification_settings = frappe.get_doc("Notification Control",
"Notification Control")