[FIX]Payment occurence fix : bad loop

This commit is contained in:
Fabien Bourgeois 2017-06-19 18:14:00 +02:00
parent 94dcc2aa7d
commit 9660aba19e

View File

@ -44,4 +44,4 @@ class GolemPaymentSchedule(models.Model):
def _compute_occurences(self):
""" Computes number of occurences """
for schedule in self:
schedule.occurences = len(self.day_ids)
schedule.occurences = len(schedule.day_ids)