From 7677ff00a271c761b024e77d51f25cd59553bcc2 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 2 Nov 2017 18:12:14 +0530 Subject: [PATCH 1/2] [hotfix] User not able to edit exchange rate even if Allow Stale Exchange Rates is disabled in the accounts settings (#11409) --- erpnext/public/js/utils.js | 2 +- erpnext/startup/boot.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index efb04d1c09..47cda19298 100644 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -38,7 +38,7 @@ $.extend(erpnext, { }, stale_rate_allowed: () => { - return cint(frappe.boot.sysdefaults.allow_stale) || 1; + return cint(frappe.boot.sysdefaults.allow_stale); }, setup_serial_no: function() { diff --git a/erpnext/startup/boot.py b/erpnext/startup/boot.py index 2080224a70..e940f94046 100644 --- a/erpnext/startup/boot.py +++ b/erpnext/startup/boot.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals import frappe +from frappe.utils import cint def boot_session(bootinfo): """boot session - send website info if guest""" @@ -19,8 +20,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.sysdefaults.allow_stale = cint(frappe.db.get_single_value('Accounts Settings', + 'allow_stale')) bootinfo.notification_settings = frappe.get_doc("Notification Control", "Notification Control") From 56cb0aa9c15e7ca45992ef8ac59c4d555b97d906 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 3 Nov 2017 17:26:23 +0600 Subject: [PATCH 2/2] bumped to version 9.2.4 --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index 0dcb23f232..2812fa7a0b 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -4,7 +4,7 @@ import inspect import frappe from erpnext.hooks import regional_overrides -__version__ = '9.2.3' +__version__ = '9.2.4' def get_default_company(user=None): '''Get default company for user'''