fix: Default Series in naming series patch (#15656)
This commit is contained in:
parent
a398d6bf4f
commit
4833b4c274
@ -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
|
Loading…
x
Reference in New Issue
Block a user