fix: Missing method reset_issue_metrics added back to Issue doctype (#26574)

This commit is contained in:
Subin Tom
2021-08-10 11:43:59 +05:30
committed by GitHub
parent c5e7673277
commit 2ab62a4484

View File

@@ -222,6 +222,10 @@ class Issue(Document):
}).insert(ignore_permissions=True)
return replicated_issue.name
def reset_issue_metrics(self):
self.db_set("resolution_time", None)
self.db_set("user_resolution_time", None)
def before_insert(self):
if frappe.db.get_single_value("Support Settings", "track_service_level_agreement"):