diff --git a/press/press/doctype/usage_record/patches/add_unique_constraint.py b/press/press/doctype/usage_record/patches/add_unique_constraint.py index f3b9c5406d..c3d98994cd 100644 --- a/press/press/doctype/usage_record/patches/add_unique_constraint.py +++ b/press/press/doctype/usage_record/patches/add_unique_constraint.py @@ -2,4 +2,5 @@ def execute(): + frappe.reload_doc("press", "doctype", "usage_record") frappe.get_doc("DocType", "Usage Record").run_module_method("on_doctype_update")