Skip to content

Commit

Permalink
[FIX] fieldservice_recurring (OCA#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 authored and Freni-OSI committed Mar 19, 2021
1 parent 6afb4fc commit ace25e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fieldservice_recurring/models/fsm_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
'daily': DAILY,
}

FREQUENCY_SELECT = [
('yearly', 'Yearly'),
('monthly', 'Monthly'),
('weekly', 'Weekly'),
('daily', 'Daily')
]


class FSMFrequency(models.Model):
_name = 'fsm.frequency'
Expand All @@ -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,
Expand Down

0 comments on commit ace25e9

Please sign in to comment.