This commit is contained in:
michel 2018-02-15 10:16:51 +01:00
parent 26c592204b
commit 6e30c39569

View File

@ -43,10 +43,8 @@ class GolemPaymentSchedule(models.Model):
name = fields.Char(required=True)
day_ids = fields.Many2many('golem.payment.schedule.day', string='Days')
occurences = fields.Integer(compute='_compute_occurences')
season_id = fields.Many2one('golem.season', 'Season', required=True)
@api.depends('day_ids')
def _compute_occurences(self):
""" Computes number of occurences """