diff --git a/fieldservice_recurring/models/fsm_frequency.py b/fieldservice_recurring/models/fsm_frequency.py index 0acb76d788..c28b58d588 100644 --- a/fieldservice_recurring/models/fsm_frequency.py +++ b/fieldservice_recurring/models/fsm_frequency.py @@ -26,6 +26,13 @@ 'daily': DAILY, } +FREQUENCY_SELECT = [ + ('yearly', 'Yearly'), + ('monthly', 'Monthly'), + ('weekly', 'Weekly'), + ('daily', 'Daily') +] + class FSMFrequency(models.Model): _name = 'fsm.frequency' @@ -38,7 +45,7 @@ class FSMFrequency(models.Model): string='Repeat Every', help="The number of intervals between events", default=1, required=True, track_visibility='onchange') interval_type = fields.Selection( - FREQUENCIES, string='Interval Type', + FREQUENCY_SELECT, string='Interval Type', required=True, track_visibility='onchange') is_exclusive = fields.Boolean( string='Exclusive Rule?', default=False,