From 679cc23abb3b16e6ca18d9c328898ad91ea28376 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Mon, 23 Jan 2017 17:20:55 +0530 Subject: [PATCH] [Fix] Naming series issue fix --- erpnext/setup/doctype/naming_series/naming_series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/naming_series/naming_series.py b/erpnext/setup/doctype/naming_series/naming_series.py index cc6940398f..a9832de7d4 100644 --- a/erpnext/setup/doctype/naming_series/naming_series.py +++ b/erpnext/setup/doctype/naming_series/naming_series.py @@ -130,7 +130,8 @@ class NamingSeries(Document): throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series')) def get_options(self, arg=None): - return frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series").options + if frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series"): + return frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series").options def get_current(self, arg=None): """get series current"""