From ec9430dae7027ad299aa33ec690f707613777880 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 2 Aug 2017 18:16:13 +0530 Subject: [PATCH] [Fix] Default selling settings not fetched on customer quick entry form (#10243) --- erpnext/startup/boot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/startup/boot.py b/erpnext/startup/boot.py index ceeceaa3c9..6b503b3eec 100644 --- a/erpnext/startup/boot.py +++ b/erpnext/startup/boot.py @@ -16,8 +16,10 @@ def boot_session(bootinfo): update_page_info(bootinfo) load_country_and_currency(bootinfo) - bootinfo.sysdefaults.territory = get_root_of('Territory') - bootinfo.sysdefaults.customer_group = get_root_of('Customer Group') + bootinfo.sysdefaults.territory = frappe.db.get_single_value('Selling Settings', + 'territory') or get_root_of('Territory') + bootinfo.sysdefaults.customer_group = frappe.db.get_single_value('Selling Settings', + 'customer_group') or get_root_of('Customer Group') bootinfo.notification_settings = frappe.get_doc("Notification Control", "Notification Control")