Skip to content

Commit

Permalink
fix(patch): update sla doctype directly (backport #32014) (#32015)
Browse files Browse the repository at this point in the history
fix(patch): update sla doctype directly (#32014)

fix: update sla doctype directly
(cherry picked from commit 2d41704)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Aug 29, 2022
1 parent c660db1 commit 1b5a1cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/patches/v13_0/add_doctype_to_sla.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def execute():

for sla in frappe.get_all("Service Level Agreement"):
agreement = frappe.get_doc("Service Level Agreement", sla.name)
agreement.document_type = "Issue"
agreement.db_set("document_type", "Issue")
agreement.reload()
agreement.apply_sla_for_resolution = 1
agreement.append("sla_fulfilled_on", {"status": "Resolved"})
agreement.append("sla_fulfilled_on", {"status": "Closed"})
Expand Down

0 comments on commit 1b5a1cb

Please sign in to comment.