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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,6 +223,10 @@ class Issue(Document):
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"):
if frappe.flags.in_test: