[Fix] Naming series issue fix

This commit is contained in:
Kanchan Chauhan 2017-01-23 17:20:55 +05:30
parent ab65f6d8b1
commit 679cc23abb

View File

@ -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"""