fix: reload doc in patch

(cherry picked from commit 6b38778dcb)
This commit is contained in:
marination
2021-09-30 14:53:47 +05:30
committed by mergify-bot
parent 1d3ba46107
commit af57e1e299

View File

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