From bb429745c0f901044a28954e9a886612fa5a9a38 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 9 Jun 2015 18:59:51 +0530 Subject: [PATCH] [fix] Blank option in naming series --- erpnext/setup/doctype/naming_series/naming_series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/naming_series/naming_series.py b/erpnext/setup/doctype/naming_series/naming_series.py index 5105fcd795..dc7a90cbb0 100644 --- a/erpnext/setup/doctype/naming_series/naming_series.py +++ b/erpnext/setup/doctype/naming_series/naming_series.py @@ -49,7 +49,7 @@ class NamingSeries(Document): self.set_series_for(self.select_doc_for_series, series_list) # create series - map(self.insert_series, [d.split('.')[0] for d in series_list]) + map(self.insert_series, [d.split('.')[0] for d in series_list if d.strip()]) msgprint(_("Series Updated"))