From 0b25091ea626a539bc4e0dc5801e876a1ede3a19 Mon Sep 17 00:00:00 2001 From: Cyril VINH-TUNG Date: Thu, 16 Jul 2026 18:30:29 -1000 Subject: [PATCH] [IMP] hr_shift: allow editing shift line times --- hr_shift/models/shift_planning.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hr_shift/models/shift_planning.py b/hr_shift/models/shift_planning.py index c0cbdc5..b7c5ab7 100644 --- a/hr_shift/models/shift_planning.py +++ b/hr_shift/models/shift_planning.py @@ -340,8 +340,12 @@ class ShiftPlanningLine(models.Model): employee_id = fields.Many2one(related="shift_id.employee_id", store=True) resource_id = fields.Many2one(related="employee_id.resource_id", store=True) day_number = fields.Selection(string="Day", selection=WEEK_DAYS_SELECTION) - start_time = fields.Datetime(compute="_compute_shift_time", store=True) - end_time = fields.Datetime(compute="_compute_shift_time", store=True) + start_time = fields.Datetime( + compute="_compute_shift_time", store=True, readonly=False + ) + end_time = fields.Datetime( + compute="_compute_shift_time", store=True, readonly=False + ) start_date = fields.Date(string="Date", compute="_compute_start_date") duration_hours = fields.Float( string="Duration (Hours)", compute="_compute_duration", store=True