diff --git a/erpnext/setup/doctype/naming_series/naming_series.py b/erpnext/setup/doctype/naming_series/naming_series.py index bb589b2a66..1b986827c2 100644 --- a/erpnext/setup/doctype/naming_series/naming_series.py +++ b/erpnext/setup/doctype/naming_series/naming_series.py @@ -21,6 +21,7 @@ class NamingSeries(Document): prefixes = "" for d in doctypes: + options = "" try: options = self.get_options(d) except frappe.DoesNotExistError: