mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 14:41:53 +00:00
refactor(postgres): port rename_tool get_doctypes to the query builder
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,9 +29,8 @@ class RenameTool(Document):
|
||||
@frappe.whitelist()
|
||||
@deprecated
|
||||
def get_doctypes():
|
||||
return frappe.db.sql_list(
|
||||
"""select name from tabDocType
|
||||
where allow_rename=1 and module!='Core' order by name"""
|
||||
return frappe.get_all(
|
||||
"DocType", filters={"allow_rename": 1, "module": ["!=", "Core"]}, order_by="name", pluck="name"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user