def get_default_naming_series(doctype):
 naming_series = (frappe.get_meta(doctype).get_field(u'naming_series').options or u'')
 if naming_series:
  naming_series = naming_series.split(u'\n')
  return (naming_series[0] or naming_series[1])
 else:
  return None

def get_default_naming_series ( doctype ) : naming_series = ( frappe . get_meta ( doctype ) . get_field ( u'naming_series' ) . options or u'' ) if naming_series : naming_series = naming_series . split ( u'\n' ) return ( naming_series [ 0 ] or naming_series [ 1 ] ) else : return None
get default value for naming_series property .