mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
minor fix
This commit is contained in:
@@ -75,6 +75,8 @@ class Company(NestedSet):
|
||||
.format(self.get(field), self.name))
|
||||
|
||||
def validate_currency(self):
|
||||
if self.is_new():
|
||||
return
|
||||
self.previous_default_currency = frappe.get_cached_value('Company', self.name, "default_currency")
|
||||
if self.default_currency and self.previous_default_currency and \
|
||||
self.default_currency != self.previous_default_currency and \
|
||||
|
||||
Reference in New Issue
Block a user