This commit is contained in:
Nabin Hait
2014-04-04 11:06:10 +05:30
parent c10213d861
commit 312ba99e71
11 changed files with 13 additions and 14 deletions

View File

@@ -137,7 +137,8 @@ def feature_setup():
doc.save()
def set_single_defaults():
for dt in frappe.db.sql_list("""select name from `tabDocType` where issingle=1"""):
for dt in frappe.db.sql_list("""select name from `tabDocType`
where issingle=1 and paent != 'Control Panel'"""):
default_values = frappe.db.sql("""select fieldname, `default` from `tabDocField`
where parent=%s""", dt)
if default_values: