mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[Fix] Naming series issue fix
This commit is contained in:
@@ -130,7 +130,8 @@ class NamingSeries(Document):
|
|||||||
throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series'))
|
throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series'))
|
||||||
|
|
||||||
def get_options(self, arg=None):
|
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):
|
def get_current(self, arg=None):
|
||||||
"""get series current"""
|
"""get series current"""
|
||||||
|
|||||||
Reference in New Issue
Block a user