Skip to content

Commit

Permalink
fix: sla getting fullfiled on converting to deal
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed May 17, 2024
1 parent c09b4f6 commit ef6ec84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crm/fcrm/doctype/crm_deal/crm_deal.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def set_sla(self):
"""
sla = get_sla(self)
if not sla:
self.first_responded_on = None
self.first_response_time = None
return
self.sla = sla.name

Expand Down
2 changes: 2 additions & 0 deletions crm/fcrm/doctype/crm_lead/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def set_sla(self):
"""
sla = get_sla(self)
if not sla:
self.first_responded_on = None
self.first_response_time = None
return
self.sla = sla.name

Expand Down

0 comments on commit ef6ec84

Please sign in to comment.