From 4833b4c27429190ca9aaddcc7a56f9e161c87629 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 11 Oct 2018 16:27:05 +0530 Subject: [PATCH] fix: Default Series in naming series patch (#15656) --- erpnext/patches/v11_0/refactor_naming_series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v11_0/refactor_naming_series.py b/erpnext/patches/v11_0/refactor_naming_series.py index 1e4a53c27da..428e2c386a1 100644 --- a/erpnext/patches/v11_0/refactor_naming_series.py +++ b/erpnext/patches/v11_0/refactor_naming_series.py @@ -128,5 +128,6 @@ def get_series_to_preserve(doctype): return series_to_preserve def get_default_series(doctype): - default_series = (frappe.get_meta(doctype).get_field("naming_series").default or "") + field = frappe.get_meta(doctype).get_field("naming_series") + default_series = field.get('default', '') if field else '' return default_series \ No newline at end of file