From 8bf74431ca0efafcb3fa608d04c276ffc94a570b Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Thu, 5 Sep 2024 13:52:24 +0200 Subject: [PATCH] T1798 FIX date ticket comparison --- website_event_compassion/models/event_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_event_compassion/models/event_registration.py b/website_event_compassion/models/event_registration.py index f9624ad..f780bce 100644 --- a/website_event_compassion/models/event_registration.py +++ b/website_event_compassion/models/event_registration.py @@ -626,7 +626,7 @@ def create_trip_invoice(self): travel_ticket = travel_ticket.filtered( lambda t, reg=registration: t.start_sale_date or reg.create_date.date() <= reg.create_date <= t.end_sale_date - or reg.create_date + or reg.create_date.date() )[:1] room_ticket = registration.event_id.event_ticket_ids.filtered( lambda t: t.product_id.product_tmpl_id == single_room_cost