mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
(cherry picked from commit 3d3f0139fd)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -92,6 +92,8 @@ def change_settings(doctype, settings_dict):
|
|||||||
for key, value in settings_dict.items():
|
for key, value in settings_dict.items():
|
||||||
setattr(settings, key, value)
|
setattr(settings, key, value)
|
||||||
settings.save()
|
settings.save()
|
||||||
|
# singles are cached by default, clear to avoid flake
|
||||||
|
frappe.db.value_cache[settings] = {}
|
||||||
yield # yield control to calling function
|
yield # yield control to calling function
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user