fix: Default Series in naming series patch (#15656)

This commit is contained in:
Faris Ansari 2018-10-11 16:27:05 +05:30 committed by Nabin Hait
parent a398d6bf4f
commit 4833b4c274

View File

@ -128,5 +128,6 @@ def get_series_to_preserve(doctype):
return series_to_preserve return series_to_preserve
def get_default_series(doctype): 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 return default_series