From 22bafc4a1c12be8ad3b42403e0129fb8aee18248 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 27 Jun 2014 21:04:37 +0530 Subject: [PATCH] Ignore select validation for naming_series --- frappe/model/base_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/model/base_document.py b/frappe/model/base_document.py index fd3d66e001..1095edf4bb 100644 --- a/frappe/model/base_document.py +++ b/frappe/model/base_document.py @@ -292,7 +292,7 @@ class BaseDocument(object): return 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 options = (df.options or "").split("\n")