I have a problem with this function. I know what is wrong. It gives me the error "list index out of range"
because I iterate on a list which is smaller but I don't know how to manage to avoid this error. My code is the following:
for i in range(len(self.RecurrentCustomersList)):
if self.RecurrentCustomersList[i].id == recurrentcustomer.id:
self.RecurrentCustomersList.remove(self.RecurrentCustomersList[i])