From e35d0395a86ab3deb773581451970a5ca942cf1a Mon Sep 17 00:00:00 2001 From: Henrik Norlin Date: Sun, 5 Nov 2023 15:19:04 +0100 Subject: [PATCH] [FIX] resource_booking: depends on web_calendar_slot_duration --- resource_booking/__manifest__.py | 1 + resource_booking/models/resource_booking_type.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resource_booking/__manifest__.py b/resource_booking/__manifest__.py index 4924ebb1..bf49ba1b 100644 --- a/resource_booking/__manifest__.py +++ b/resource_booking/__manifest__.py @@ -25,6 +25,7 @@ "mail", "portal", "resource", + "web_calendar_slot_duration", ], "data": [ "data/mail.xml", diff --git a/resource_booking/models/resource_booking_type.py b/resource_booking/models/resource_booking_type.py index 8be41bc1..b026c4b1 100644 --- a/resource_booking/models/resource_booking_type.py +++ b/resource_booking/models/resource_booking_type.py @@ -138,7 +138,7 @@ def action_open_bookings(self): default_type_id=self.id, # Context used by web_calendar_slot_duration module calendar_slot_duration=FloatTimeParser.value_to_html( - self.duration, False + self.slot_duration, False ), ), "domain": [("type_id", "=", self.id)],