fix: reload doc in patch

This commit is contained in:
marination 2021-09-30 14:53:47 +05:30
parent b1a4e040be
commit cbffbc3894

View File

@ -2,6 +2,7 @@ import frappe
def execute(): def execute():
frappe.reload_doc("maintenance", "doctype", "Maintenance Schedule Detail")
frappe.db.sql(""" frappe.db.sql("""
UPDATE `tabMaintenance Schedule Detail` UPDATE `tabMaintenance Schedule Detail`
SET completion_status = 'Pending' SET completion_status = 'Pending'