fix: Si no se han creado llamadas al prospecto se rompe la transacción en _get_current_interest
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
2bcaad6087
commit
3e41315689
@ -29,4 +29,5 @@ class ProspectTrace(ModelSQL, ModelView):
|
||||
self.prospect_city = self.prospect.city
|
||||
|
||||
def _get_current_interest(self, name):
|
||||
return self.calls[-1].interest
|
||||
if self.calls:
|
||||
return self.calls[-1].interest
|
||||
|
Loading…
Reference in New Issue
Block a user