From b6957ddac29a59860946831a77c8fddb3c7077d1 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 3 Dec 2023 17:21:48 +0100 Subject: [PATCH] fix: set date format from system settings --- erpnext/patches.txt | 1 + erpnext/setup/install.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 0de100a883..9b070bdaf7 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -351,5 +351,6 @@ erpnext.patches.v15_0.set_reserved_stock_in_bin erpnext.patches.v14_0.create_accounting_dimensions_in_supplier_quotation erpnext.patches.v14_0.update_zero_asset_quantity_field execute:frappe.db.set_single_value("Buying Settings", "project_update_frequency", "Each Transaction") +execute:frappe.db.set_default("date_format", frappe.db.get_single_value("System Settings", "date_format")) # below migration patch should always run last erpnext.patches.v14_0.migrate_gl_to_payment_ledger diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py index 5b993fa64b..12cc62afed 100644 --- a/erpnext/setup/install.py +++ b/erpnext/setup/install.py @@ -85,8 +85,6 @@ def set_single_defaults(): except frappe.ValidationError: pass - frappe.db.set_default("date_format", "dd-mm-yyyy") - setup_currency_exchange()