Browse Source

[IMP] b_shift : shift start_time, end_time required

pull/124/head
Elouan Le Bars 5 years ago
parent
commit
9777aaa2f8
  1. 4
      beesdoo_shift/models/task.py

4
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)

Loading…
Cancel
Save