Minor issue in naming series

This commit is contained in:
Nabin Hait 2015-06-17 15:08:43 +05:30
parent ac59c2b300
commit bd9aa13db3

View File

@ -26,7 +26,8 @@ class NamingSeries(Document):
except frappe.DoesNotExistError:
continue
prefixes = prefixes + "\n" + options
if options:
prefixes = prefixes + "\n" + options
prefixes.replace("\n\n", "\n")
prefixes = "\n".join(sorted(prefixes.split()))