From 1ba072fa9bb6e1cfc172edc099adc1604dbcbe7e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 17 Jul 2013 12:41:19 +0530 Subject: [PATCH] [fix] [patch] check in_list_view for Custom DocTypes --- patches/july_2013/p05_custom_doctypes_in_list_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/july_2013/p05_custom_doctypes_in_list_view.py b/patches/july_2013/p05_custom_doctypes_in_list_view.py index 769e47ae3f..867bead676 100644 --- a/patches/july_2013/p05_custom_doctypes_in_list_view.py +++ b/patches/july_2013/p05_custom_doctypes_in_list_view.py @@ -2,7 +2,7 @@ import webnotes from webnotes.model import no_value_fields def execute(): - for dt in webnotes.conn.sql("""select name from `tabDocType` where custom=1"""): + for dt in webnotes.conn.sql_list("""select name from `tabDocType` where custom=1"""): dtbean = webnotes.bean("DocType", dt) if any((df.in_list_view for df in dtbean.doclist.get({"doctype": "DocField", "parent": dt}))):