From 9777aaa2f8bb0d08d8a4f052e62984bfaac84230 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Fri, 22 Nov 2019 14:55:28 +0100 Subject: [PATCH] [IMP] b_shift : shift start_time, end_time required --- beesdoo_shift/models/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beesdoo_shift/models/task.py b/beesdoo_shift/models/task.py index f8c3aef..903f830 100644 --- a/beesdoo_shift/models/task.py +++ b/beesdoo_shift/models/task.py @@ -37,8 +37,8 @@ class Task(models.Model): ('working_mode', 'in', ('regular', 'irregular')), ('state', 'not in', ('unsubscribed', 'resigning')), ]) - start_time = fields.Datetime(track_visibility='always', index=True) - end_time = fields.Datetime(track_visibility='always') + start_time = fields.Datetime(track_visibility='always', index=True, required=True) + end_time = fields.Datetime(track_visibility='always', required=True) stage_id = fields.Many2one('beesdoo.shift.stage', required=True, track_visibility='onchange', default=lambda self: self.env.ref('beesdoo_shift.open')) super_coop_id = fields.Many2one('res.users', string="Super Cooperative", domain=[('partner_id.super', '=', True)], track_visibility='onchange') color = fields.Integer(related="stage_id.color", readonly=True)