[hotfix] User not able to edit exchange rate even if Allow Stale Exchange Rates is disabled in the accounts settings (#11409)
This commit is contained in:
parent
75f3f81a9b
commit
7677ff00a2
@ -38,7 +38,7 @@ $.extend(erpnext, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stale_rate_allowed: () => {
|
stale_rate_allowed: () => {
|
||||||
return cint(frappe.boot.sysdefaults.allow_stale) || 1;
|
return cint(frappe.boot.sysdefaults.allow_stale);
|
||||||
},
|
},
|
||||||
|
|
||||||
setup_serial_no: function() {
|
setup_serial_no: function() {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.utils import cint
|
||||||
|
|
||||||
def boot_session(bootinfo):
|
def boot_session(bootinfo):
|
||||||
"""boot session - send website info if guest"""
|
"""boot session - send website info if guest"""
|
||||||
@ -19,8 +20,8 @@ def boot_session(bootinfo):
|
|||||||
'territory')
|
'territory')
|
||||||
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value('Selling Settings',
|
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value('Selling Settings',
|
||||||
'customer_group')
|
'customer_group')
|
||||||
bootinfo.sysdefaults.allow_stale = frappe.db.get_single_value('Accounts Settings',
|
bootinfo.sysdefaults.allow_stale = cint(frappe.db.get_single_value('Accounts Settings',
|
||||||
'allow_stale') or 1
|
'allow_stale'))
|
||||||
|
|
||||||
bootinfo.notification_settings = frappe.get_doc("Notification Control",
|
bootinfo.notification_settings = frappe.get_doc("Notification Control",
|
||||||
"Notification Control")
|
"Notification Control")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user