From af63d053b19414ec17c6546461627416cb73ef88 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 9 Jun 2014 15:43:24 +0530 Subject: [PATCH] Also save Global Defaults in System Settings patch --- erpnext/patches/v4_0/global_defaults_to_system_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/patches/v4_0/global_defaults_to_system_settings.py b/erpnext/patches/v4_0/global_defaults_to_system_settings.py index abd38c685f..57b21aea41 100644 --- a/erpnext/patches/v4_0/global_defaults_to_system_settings.py +++ b/erpnext/patches/v4_0/global_defaults_to_system_settings.py @@ -33,3 +33,7 @@ def execute(): system_settings.ignore_mandatory = True system_settings.save() + + global_defaults = frappe.get_doc("Global Defaults") + global_defaults.ignore_mandatory = True + global_defaults.save()