Skip to content
Permalink
Browse files

💣 ups

  • Loading branch information...
yelizariev committed Aug 8, 2019
1 parent 881245c commit 5daa29bff266e10c0cb432893f3a3e545da16c05
Showing with 1 addition and 2 deletions.
  1. +1 −2 odoo_backup_sh/models/odoo_backup_sh.py
@@ -83,8 +83,7 @@ def _compute_database_names(self):
('yearly_limit_positive', 'check (yearly_limit > 0)', 'The yearly limit must be positive!'),
]

@api.
nge('config_cron_ids', 'hourly_rotation', 'daily_rotation', 'weekly_rotation', 'monthly_rotation', 'yearly_rotation')
@api.onchange('config_cron_ids', 'hourly_rotation', 'daily_rotation', 'weekly_rotation', 'monthly_rotation', 'yearly_rotation')
def _onchange_common_rotation(self):
if self.config_cron_ids:
rotation_list = [self.hourly_rotation, self.daily_rotation, self.weekly_rotation, self.monthly_rotation, self.yearly_rotation]

0 comments on commit 5daa29b

Please sign in to comment.
You can’t perform that action at this time.