Przeglądaj źródła

Ignore select validation for naming_series

version-14
Anand Doshi 11 lat temu
rodzic
commit
22bafc4a1c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py Wyświetl plik

@@ -292,7 +292,7 @@ class BaseDocument(object):
return return


for df in self.meta.get_select_fields(): for df in self.meta.get_select_fields():
if not (self.get(df.fieldname) and df.options):
if df.fieldname=="naming_series" or not (self.get(df.fieldname) and df.options):
continue continue


options = (df.options or "").split("\n") options = (df.options or "").split("\n")


Ładowanie…
Anuluj
Zapisz