fix: user doctype singles issue

This commit is contained in:
Jannat Patel
2023-01-03 22:04:59 +05:30
parent cd88657bc9
commit b970eb1541
4 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
import frappe
def execute():
rows = frappe.db.sql("select field from `tabSingles` where doctype='User'", as_dict = True)
if len(rows):
frappe.db.sql("delete from `tabSingles` where doctype='User'")