diff --git a/beesdoo_shift/__openerp__.py b/beesdoo_shift/__openerp__.py index b1cf8e3..2a4af6a 100644 --- a/beesdoo_shift/__openerp__.py +++ b/beesdoo_shift/__openerp__.py @@ -13,7 +13,7 @@ 'website': "https://github.com/beescoop/Obeesdoo", 'category': 'Cooperative management', - 'version': '9.0.1.0.2', + 'version': '9.0.1.1.0', 'depends': ['beesdoo_base'], diff --git a/beesdoo_shift/models/cooperative_status.py b/beesdoo_shift/models/cooperative_status.py index 1a2ef20..c58b219 100644 --- a/beesdoo_shift/models/cooperative_status.py +++ b/beesdoo_shift/models/cooperative_status.py @@ -218,8 +218,7 @@ class CooperativeStatus(models.Model): self.write({'alert_start_time': self.today, 'extension_start_time': False, 'time_extension': 0}) if new_state == 'ok': data = {'extension_start_time': False, 'time_extension': 0} - if self.working_mode != 'irregular': # Don't reset alert time for irregular - data['alert_start_time'] = False + data['alert_start_time'] = False self.write(data) if new_state == 'unsubscribed' or new_state == 'resigning': # Remove worker from task_templates @@ -304,7 +303,6 @@ class CooperativeStatus(models.Model): if delta and delta % PERIOD == 0 and status not in journal.line_ids: if status.sr > 0: status.sr -= 1 - status.alert_start_time = False elif status.alert_start_time: status.sr -= 1 else: