Skip to content

Commit

Permalink
📺 rotatation types must be required
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Aug 8, 2019
1 parent 5daa29b commit 5074542
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions odoo_backup_sh/models/odoo_backup_sh.py
Expand Up @@ -56,11 +56,11 @@ def _compute_database_names(self):
encrypt_backups = fields.Boolean(string="Encrypt Backups")
encryption_password = fields.Char(string='Encryption Password')
config_cron_ids = fields.One2many('odoo_backup_sh.config.cron', 'backup_config_id', string='Scheduled Auto Backups')
hourly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Hourly', default='unlimited')
daily_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Daily', default='unlimited')
weekly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Weekly', default='unlimited')
monthly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Monthly', default='unlimited')
yearly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Yearly', default='unlimited')
hourly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Hourly', default='unlimited', required=True)
daily_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Daily', default='unlimited'', required=True)
weekly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Weekly', default='unlimited'', required=True)
monthly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Monthly', default='unlimited'', required=True)
yearly_rotation = fields.Selection(selection=ROTATION_OPTIONS, string='Yearly', default='unlimited'', required=True)
hourly_limit = fields.Integer('Hourly limit', default=1, help='How many hourly backups to preserve.')
daily_limit = fields.Integer('Daily limit', default=1, help='How many daily backups to preserve.')
weekly_limit = fields.Integer('Weekly limit', default=1, help='How many weekly backups to preserve.')
Expand Down

0 comments on commit 5074542

Please sign in to comment.