mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
[fix] [patch] check in_list_view for Custom DocTypes
This commit is contained in:
@@ -2,7 +2,7 @@ import webnotes
|
|||||||
from webnotes.model import no_value_fields
|
from webnotes.model import no_value_fields
|
||||||
|
|
||||||
def execute():
|
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)
|
dtbean = webnotes.bean("DocType", dt)
|
||||||
|
|
||||||
if any((df.in_list_view for df in dtbean.doclist.get({"doctype": "DocField", "parent": dt}))):
|
if any((df.in_list_view for df in dtbean.doclist.get({"doctype": "DocField", "parent": dt}))):
|
||||||
|
|||||||
Reference in New Issue
Block a user