chore: se invierte comprobación de nulo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
cf51d4d989
commit
6fb2e1d537
@ -36,7 +36,9 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
|||||||
|
|
||||||
@fields.depends('calls', 'current_interest')
|
@fields.depends('calls', 'current_interest')
|
||||||
def on_change_calls(self):
|
def on_change_calls(self):
|
||||||
if self.calls:
|
if not self.calls:
|
||||||
|
return
|
||||||
|
|
||||||
last_call = self.calls[-1]
|
last_call = self.calls[-1]
|
||||||
self.current_interest = last_call.interest
|
self.current_interest = last_call.interest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user