From 4cb38c6fe6833e1191ee3f9fccdec9fd206ca88d Mon Sep 17 00:00:00 2001 From: Pilar Vargas Date: Thu, 8 Oct 2026 15:58:07 +0200 Subject: [PATCH] [FIX] event_track_location_overlap: Ignore tracks without dates Exclude tracks without dates from overlap checks, as they have no defined time interval to compare. TT64936 --- event_track_location_overlap/models/event_track_location.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/event_track_location_overlap/models/event_track_location.py b/event_track_location_overlap/models/event_track_location.py index 076f1570e..85eed27bb 100644 --- a/event_track_location_overlap/models/event_track_location.py +++ b/event_track_location_overlap/models/event_track_location.py @@ -23,7 +23,11 @@ def _check_overlappable_one(self): return # Get tracks that could produce an overlap remaining_tracks = self.env["event.track"].search( - [("location_id", "=", self.id), ("stage_id.is_cancel", "=", False)] + [ + ("location_id", "=", self.id), + ("stage_id.is_cancel", "=", False), + ("date", "!=", False), + ] ) # Compare tracks overlapping among themselves while remaining_tracks: