fix: reset first_response_time & first_responded_on if set from communication.py
This commit is contained in:
parent
96b18b4dd8
commit
193a81be8f
@ -106,8 +106,12 @@ class CRMDeal(Document):
|
|||||||
"""
|
"""
|
||||||
Find an SLA to apply to the deal.
|
Find an SLA to apply to the deal.
|
||||||
"""
|
"""
|
||||||
|
if self.sla: return
|
||||||
|
|
||||||
sla = get_sla(self)
|
sla = get_sla(self)
|
||||||
if not sla:
|
if not sla:
|
||||||
|
self.first_responded_on = None
|
||||||
|
self.first_response_time = None
|
||||||
return
|
return
|
||||||
self.sla = sla.name
|
self.sla = sla.name
|
||||||
|
|
||||||
|
|||||||
@ -232,8 +232,12 @@ class CRMLead(Document):
|
|||||||
"""
|
"""
|
||||||
Find an SLA to apply to the lead.
|
Find an SLA to apply to the lead.
|
||||||
"""
|
"""
|
||||||
|
if self.sla: return
|
||||||
|
|
||||||
sla = get_sla(self)
|
sla = get_sla(self)
|
||||||
if not sla:
|
if not sla:
|
||||||
|
self.first_responded_on = None
|
||||||
|
self.first_response_time = None
|
||||||
return
|
return
|
||||||
self.sla = sla.name
|
self.sla = sla.name
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user