[hotfix] fixed Permissions Error while fetching allow_stale field value from Accounts Settings (#11182)

* [hotfix] fixed Permissions Error while fetching allow_stale field value from Accounts Settings

* [minor] renamed the allow_stale_rate method to stale_rate_allowed
This commit is contained in:
Makarand Bauskar
2017-10-25 12:17:40 +05:30
committed by Nabin Hait
parent 464289b726
commit e6712c129c
4 changed files with 9 additions and 15 deletions

View File

@@ -19,6 +19,8 @@ def boot_session(bootinfo):
'territory')
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value('Selling Settings',
'customer_group')
bootinfo.sysdefaults.allow_stale = frappe.db.get_single_value('Accounts Settings',
'allow_stale') or 1
bootinfo.notification_settings = frappe.get_doc("Notification Control",
"Notification Control")